Open thisisnic opened 1 year ago
The Substrait spec doesn't state whether regex can or cannot be used in the functions, so this is something we want to raise there. I suspect that the contains()
function which has been bound to R's grepl()
here doesn't translate to something which allows regex; in the Substrait string function spec there are function like count_substring
and regexp_count_substring
; implying differing version of functions depending on whether regex are allowed. There is currently no regexp_contains
. We should probably open an issue on the Substrait repo, and in the meantime use a workaround (e.g. could we perhaps bind regexp_count_substring(x) > 0
to grepl()
)?
Created on 2023-04-05 with reprex v2.0.2