You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The regexp_match function fails to compile when supplied a g flag.
To Reproduce
At the moment many functions including regex match are not working correctly when accessed directly via the dataframe interface (I am working on a fix for this).
To reproduce this bug, setup a test in functions.rs
If we are using PostgreSQL as baseline, then supplying g flag to regexp_match() should indeed result in an error.
psql (15.1 (Debian 15.1-1.pgdg110+1))
Type "help" for help.
postgres=# select regexp_match('a', '[a-z]', 'g');
ERROR: regexp_match() does not support the "global" option
HINT: Use the regexp_matches function instead.
postgres=#
Describe the bug
The regexp_match function fails to compile when supplied a
g
flag.To Reproduce
At the moment many functions including regex match are not working correctly when accessed directly via the dataframe interface (I am working on a fix for this).
To reproduce this bug, setup a test in functions.rs
This will fail with a compile error from the regex subsystem.
Expected behavior
The regex_match function should accept "g" as the standard regex global expression flag.
Additional context
the regex_match function, that does behave as expected includes some lines to format flags into a rust pattern:
https://github.com/apache/arrow-datafusion/blob/50a98805cdd6d5383f0c124d449ed549ca13428a/datafusion/src/physical_plan/regex_expressions.rs#L139
This mapping is not present in the regex_match function.
The text was updated successfully, but these errors were encountered: