[FEA] Support escape characters in search list when rewrite regexp_replace
to string replace
#11812
Labels
performance
A performance related task/issue
Is your feature request related to a problem? Please describe.
#7967 added a performance improvement of
regexp_replace
to transpile simple choice-type regular expressions into lists of choices to use with string replace multi. But when the search list contains some escape characters like\n
,\r
and\t
, we won't go that path.I hope we can support these cases so more patterns can be speed up.
Describe the solution you'd like
Filter those valid escape characters from
regexList
, in the isSupportedStringReplacePattern function. And add a test to verify that this behaviour happens.The text was updated successfully, but these errors were encountered: