-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-33938][SQL] Optimize Like Any/All by LikeSimplification #30975
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
Closed
Closed
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
4a6f903
Reuse completeNextStageWithFetchFailure
beliefer 96456e2
Merge remote-tracking branch 'upstream/master'
beliefer 4314005
Merge remote-tracking branch 'upstream/master'
beliefer d6af4a7
Merge remote-tracking branch 'upstream/master'
beliefer f69094f
Merge remote-tracking branch 'upstream/master'
beliefer b86a42d
Merge remote-tracking branch 'upstream/master'
beliefer 2ac5159
Merge branch 'master' of github.com:beliefer/spark
beliefer 9021d6c
Merge remote-tracking branch 'upstream/master'
beliefer 74a2ef4
Merge branch 'master' of github.com:beliefer/spark
beliefer 9828158
Merge remote-tracking branch 'upstream/master'
beliefer 9cd1aaf
Merge remote-tracking branch 'upstream/master'
beliefer abfcbb9
Merge remote-tracking branch 'upstream/master'
beliefer 07c6c81
Merge remote-tracking branch 'upstream/master'
beliefer 580130b
Merge remote-tracking branch 'upstream/master'
beliefer 3712808
Merge branch 'master' of github.com:beliefer/spark
beliefer 6107413
Merge remote-tracking branch 'upstream/master'
beliefer 4b799b4
Merge remote-tracking branch 'upstream/master'
beliefer ee0ecbf
Merge remote-tracking branch 'upstream/master'
beliefer 596bc61
Merge remote-tracking branch 'upstream/master'
beliefer 0164e2f
Merge remote-tracking branch 'upstream/master'
beliefer 90b79fc
Merge remote-tracking branch 'upstream/master'
beliefer 2cef3a9
Merge remote-tracking branch 'upstream/master'
beliefer c26b64f
Merge remote-tracking branch 'upstream/master'
beliefer 2e02cd2
Merge remote-tracking branch 'upstream/master'
beliefer a6d0741
Merge remote-tracking branch 'upstream/master'
beliefer 82e5b2c
Merge remote-tracking branch 'upstream/master'
beliefer 70bbf5d
Merge remote-tracking branch 'upstream/master'
beliefer 126a51e
Merge remote-tracking branch 'upstream/master'
beliefer f2ceacd
Merge remote-tracking branch 'upstream/master'
beliefer 5ad208f
Merge remote-tracking branch 'upstream/master'
beliefer 970917e
Merge remote-tracking branch 'upstream/master'
beliefer ddc1b8b
Merge remote-tracking branch 'upstream/master'
beliefer 2b1ed0b
Merge remote-tracking branch 'upstream/master'
beliefer a7d3729
Merge remote-tracking branch 'upstream/master'
beliefer 17ef8fc
Merge remote-tracking branch 'upstream/master'
beliefer f7a2902
Merge remote-tracking branch 'upstream/master'
beliefer a803c9b
Merge remote-tracking branch 'upstream/master'
beliefer 9d79697
Merge remote-tracking branch 'upstream/master'
beliefer 7127f5e
Merge remote-tracking branch 'upstream/master'
beliefer 69bd51b
Merge remote-tracking branch 'upstream/master'
beliefer a7ced5c
Merge remote-tracking branch 'upstream/master'
beliefer 31749bc
Simplify logical operation for multiple like
beliefer de5c166
Update code
beliefer 20acb26
Update code
beliefer bcc0b90
Update code
beliefer e4934f1
Optimize code
beliefer 2003a2b
Optimize code
beliefer 7bc9813
Optimize code
beliefer b6ba902
Optimize code
beliefer fec4fe5
Merge branch 'master' into SPARK-33938
beliefer 52ecedd
Remove Whitespace
beliefer 454a68b
Optimize code
beliefer 8f26d1b
Adjust code
beliefer e2c7dfe
Update code
beliefer 6acf1c1
Update code
beliefer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It may cause
StackOverflowError.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.
@wangyum I will fix this issue.
Uh oh!
There was an error while loading. Please reload this page.
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.
For example, patterns a, b, c, d, e, and f. Suppose a, b, c, and d are patterns that can be optimized with
startsWith. According to the current logic, it isstartsWith(a)&startsWith(b)&startsWith(c)&startsWith(d)&LikeAll(e,f).Their hierarchy is not shown here.We can use the threshold to determine the number of patterns that can be optimized, for example, only two patterns can be optimized. Then it is
startsWith(a)&startsWith(b)&LikeAll(c,d,e,f)