-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feature](agg) support aggregate function group_array_intersect #33265
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
[feature](agg) support aggregate function group_array_intersect #33265
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
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.
clang-tidy made some suggestions
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.cpp
Outdated
Show resolved
Hide resolved
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.cpp
Outdated
Show resolved
Hide resolved
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.cpp
Outdated
Show resolved
Hide resolved
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.h
Outdated
Show resolved
Hide resolved
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.h
Show resolved
Hide resolved
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.h
Outdated
Show resolved
Hide resolved
eb3889e to
96f8c80
Compare
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.
clang-tidy made some suggestions
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.h
Show resolved
Hide resolved
f918d19 to
0784ce8
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
0784ce8 to
1b3ea07
Compare
1b3ea07 to
6aa4266
Compare
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.
clang-tidy made some suggestions
be/src/vec/aggregate_functions/aggregate_function_group_array_intersect.h
Show resolved
Hide resolved
|
run buildall |
TPC-H: Total hot run time: 38737 ms |
|
TeamCity be ut coverage result: |
|
run p0 |
|
run buildall |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 38777 ms |
TPC-DS: Total hot run time: 182549 ms |
ClickBench: Total hot run time: 30.22 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
HappenLee
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
…ntersect functions (#560) - hll_from_base64, hll_to_base64: master pr: apache/doris#32089 - group_array_intersect: master pr: apache/doris#33265
1. MacOS use libhdfs3, so we need call different function.
this compile error intro by PR apache#33680
2. size_t is not UInt64 on MacOS
this compile error intro by PR apache#33265
1. MacOS use libhdfs3, so we need call different function.
this compile error intro by PR apache#33680
2. size_t is not UInt64 on MacOS
this compile error intro by PR apache#33265
1. MacOS use libhdfs3, so we need call different function.
this compile error intro by PR apache#33680
2. size_t is not UInt64 on MacOS
this compile error intro by PR apache#33265
Proposed changes
Issue Number: #31737
Consider this table named group_array_intersect_test, which has id and c_array_int columns:
we can use group_array_intersect to get the intersect element(s) from given array like these queries:
Furthermore, this function supports all kinds of array type, not only array(int) mentioned above, but also array(varchar()), array(date) and so on.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...