-
Notifications
You must be signed in to change notification settings - Fork 1.8k
#17838 Rewrite regexp_like calls as ~ and *~ operator expressions when possible
#17839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
99c455e
7930bcf
a35ba52
d8d2c3b
6b83148
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -784,7 +784,7 @@ EXPLAIN SELECT | |
| FROM test; | ||
| ---- | ||
| logical_plan | ||
| 01)Projection: regexp_like(test.column1_utf8view, Utf8("^https?://(?:www\.)?([^/]+)/.*$")) AS k | ||
| 01)Projection: test.column1_utf8view ~ Utf8View("^https?://(?:www\.)?([^/]+)/.*$") AS k | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #17838 (comment) The operator logic is in We can only rewrite in some cases because of the optional The reason for the operator being more efficient is that it will make use of the Additionally there's a regular expression simplification rule that only operates on |
||
| 02)--TableScan: test projection=[column1_utf8view] | ||
|
|
||
| ## Ensure no casts for REGEXP_MATCH | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you -- these comments really help