-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem or challenge?
Currently, scalar UDF functions can not be "specialized"
SELECT * FROM t where my_matcher(t.column, '[a-z].*');
What happens is that the regexp string '[a-z].*' gets passed as a literal expression to each invocation of the function, then you have to compile the regex again and again for every batch you process through the UDF.
Since it is expensive to compile these RegExps, it would be nice if there was something that could compile the RegExp once per plan rather than once per batch
Describe the solution you'd like
No response
Describe alternatives you've considered
See comments below
Additional context
Suggested by @thinkharderdev on #8045 (comment)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request