Uh oh!
There was an error while loading. Please reload this page.
[feature](array-func)support array_match_all/any - #40605
Conversation
doris-robot
commented
Sep 10, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
amorynan
commented
Sep 10, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Sep 10, 2024
TeamCity be ut coverage result: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| private ArrayMatchAll(List<Expression> expressions) { | ||
| super("array_match_all", expressions); | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
| super("array_match_all", arg instanceof Lambda ? arg.child(1).child(0) : arg, new ArrayMap(arg)); | ||
| if (!(arg instanceof Lambda)) { | ||
| throw new AnalysisException( | ||
| String.format("The 1st arg of %s must be lambda but is %s", getName(), arg)); | ||
| } |
There was a problem hiding this comment.
| super("array_match_all", arginstanceofLambda ? arg.child(1).child(0) : arg, newArrayMap(arg)); | |
| if (!(arginstanceofLambda)) { | |
| thrownewAnalysisException( | |
| String.format("The 1st arg of %s must be lambda but is %s", getName(), arg)); | |
| } | |
| super("array_match_all", arginstanceofLambda ? newArrayMap(arg) : arg); |
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Sep 10, 2024
TPC-H: Total hot run time: 38163 ms |
doris-robot
commented
Sep 10, 2024
TPC-DS: Total hot run time: 197908 ms |
doris-robot
commented
Sep 10, 2024
ClickBench: Total hot run time: 31.52 s |
Uh oh!
There was an error while loading. Please reload this page.
| if (first_outside_null_map->get_data()[row] || | ||
| second_outside_null_map->get_data()[row]) { | ||
| result_null_column->get_data()[row] = 1; | ||
| result_data_column->get_data()[row] = 0; |
There was a problem hiding this comment.
better add comment to explain why return null instead of false, and need to describe the behavior in document
Uh oh!
There was an error while loading. Please reload this page.
amorynan
commented
Sep 11, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Sep 11, 2024
TeamCity be ut coverage result: |
| @@ -0,0 +1,68 @@ | |||
| // Licensed to the Apache Software Foundation (ASF) under one | |||
There was a problem hiding this comment.
we need to detail explain the behavior if encounter null in arrays for the two functions, it's confusing
doris-robot
commented
Sep 11, 2024
TPC-H: Total hot run time: 38190 ms |
doris-robot
commented
Sep 11, 2024
TPC-DS: Total hot run time: 197140 ms |
doris-robot
commented
Sep 11, 2024
ClickBench: Total hot run time: 31.29 s |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
amorynan
commented
Sep 12, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Sep 12, 2024
TeamCity be ut coverage result: |
doris-robot
commented
Sep 12, 2024
TPC-H: Total hot run time: 38521 ms |
doris-robot
commented
Sep 12, 2024
TPC-DS: Total hot run time: 198173 ms |
eldenmoon
commented
Sep 12, 2024
we need to detail explain the behavior if encounter null in arrays for the two functions, it's confusing |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
doris-robot
commented
Sep 12, 2024
ClickBench: Total hot run time: 32.02 s |
amorynan
commented
Sep 12, 2024
run cloud_p0 |
array_match_all means that every element in array column should all match filter according to lambda expr array_match_any means that any element in array column match filter according to lambda expr
array_match_all means that every element in array column should all match filter according to lambda expr array_match_any means that any element in array column match filter according to lambda expr ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [x] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [x] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [x] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
array_match_all means that every element in array column should all match filter according to lambda expr array_match_any means that any element in array column match filter according to lambda expr
Proposed changes
array_match_all
means that every element in array column should all match filter according to lambda expr
array_match_any
means that any element in array column match filter according to lambda expr
Issue Number: close #xxx