embucket-labs icon indicating copy to clipboard operation
embucket-labs copied to clipboard

engine: `'\\'` turn in to `''` when converting from AST to Logical plan

Open DanCodedThis opened this issue 4 months ago • 0 comments

  • This was found as part of the regexp_* function family
  • However, this affects all strings
  • Parser is fine with '\\' but Logical plans seem to remove the \\ to turn it to an empty string
  • This also happens like this \\b -> b, etc (there are many other similar cases)
  • The cure seems to be (a hacky way solution) is to replace \\ with \\\\ then when we get to the execution from the logical plan, we actually get \\ which is what we want
  • Perhaps there is a setting in DF ctx config?
  • This can be fixed probably in the expr planner, etc

DanCodedThis avatar Aug 11 '25 13:08 DanCodedThis