-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement][Refactor] optimize array_contains_all/array_contains_seq function #51701
Merged
Conversation
This file contains 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
silverbullet233
changed the title
[WIP][Enhancement][Refactor] optimize array_contains_all/array_contains_seq function
[Enhancement][Refactor] optimize array_contains_all/array_contains_seq function
Oct 10, 2024
Seaven
previously approved these changes
Oct 10, 2024
trueeyu
previously approved these changes
Oct 10, 2024
LiShuMing
previously approved these changes
Oct 10, 2024
Signed-off-by: silverbullet233 <[email protected]>
Signed-off-by: silverbullet233 <[email protected]>
Signed-off-by: silverbullet233 <[email protected]>
Signed-off-by: silverbullet233 <[email protected]>
Signed-off-by: silverbullet233 <[email protected]>
Signed-off-by: silverbullet233 <[email protected]>
silverbullet233
dismissed stale reviews from LiShuMing, trueeyu, and Seaven
via
October 14, 2024 08:34
d45b86d
silverbullet233
force-pushed
the
opt_array_has
branch
from
October 14, 2024 08:34
ea2b6b2
to
d45b86d
Compare
Signed-off-by: silverbullet233 <[email protected]>
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 5 / 5 (100.00%) file detail
|
[BE Incremental Coverage Report]❌ fail : 0 / 249 (00.00%) file detail
|
Seaven
approved these changes
Oct 21, 2024
satanson
approved these changes
Oct 21, 2024
trueeyu
approved these changes
Oct 21, 2024
HangyuanLiu
approved these changes
Oct 21, 2024
LiShuMing
approved these changes
Oct 21, 2024
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
✅ Backports have been created
|
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Oct 22, 2024
…q function (#51701) Signed-off-by: silverbullet233 <[email protected]> (cherry picked from commit ac623b3) # Conflicts: # be/src/column/column_helper.h # be/src/exprs/array_functions.h # be/src/exprs/array_functions.tpp # be/src/util/bit_mask.h # fe/fe-core/src/main/java/com/starrocks/catalog/FunctionSet.java # gensrc/script/functions.py # test/sql/test_array_fn/R/test_array_contains # test/sql/test_array_fn/T/test_array_contains
mergify bot
pushed a commit
that referenced
this pull request
Oct 22, 2024
…q function (#51701) Signed-off-by: silverbullet233 <[email protected]> (cherry picked from commit ac623b3) # Conflicts: # be/src/column/column_helper.h
silverbullet233
added a commit
that referenced
this pull request
Oct 22, 2024
…q function (backport #51701) (#52190) Signed-off-by: silverbullet233 <[email protected]> Co-authored-by: eyes_on_me <[email protected]> Co-authored-by: silverbullet233 <[email protected]>
ZiheLiu
pushed a commit
to ZiheLiu/starrocks
that referenced
this pull request
Oct 31, 2024
…q function (StarRocks#51701) Signed-off-by: silverbullet233 <[email protected]>
renzhimin7
pushed a commit
to renzhimin7/starrocks
that referenced
this pull request
Nov 7, 2024
…q function (StarRocks#51701) Signed-off-by: silverbullet233 <[email protected]> Signed-off-by: zhiminr.ren <[email protected]>
42 tasks
silverbullet233
added a commit
to silverbullet233/starrocks
that referenced
this pull request
Nov 15, 2024
…q function (StarRocks#51701) Signed-off-by: silverbullet233 <[email protected]>
silverbullet233
added a commit
to silverbullet233/starrocks
that referenced
this pull request
Nov 15, 2024
…q function (StarRocks#51701) Signed-off-by: silverbullet233 <[email protected]>
wanpengfei-git
pushed a commit
that referenced
this pull request
Nov 15, 2024
…q function (backport #51701) (#52934) Signed-off-by: silverbullet233 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why I'm doing:
What I'm doing:
optimize the performance of
array_contains_all
andarray_contains_seq
, and reduce their implementation complexity fromO(m*n)
toO(m+n)
basic idea
Test
Here I use two very simple queries to compare the performance
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: