Uh oh!
There was an error while loading. Please reload this page.
[opt](Nereids) aggregate function sum support string type as parameter - #49954
Merged
Conversation
hello-stephen
commented
Apr 10, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
morrySnowforce-pushed
the
sum_support_string
branch
from
April 10, 2025 07:59
d6bae2e to
5e471a0ComparemorrySnow
commented
Apr 10, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Apr 10, 2025
TPC-H: Total hot run time: 34186 ms |
doris-robot
commented
Apr 10, 2025
TPC-DS: Total hot run time: 187381 ms |
doris-robot
commented
Apr 10, 2025
ClickBench: Total hot run time: 31.02 s |
morrySnowforce-pushed
the
sum_support_string
branch
from
April 10, 2025 10:10
5e471a0 to
f9567afComparemorrySnow
commented
Apr 10, 2025
ContributorAuthor
run buildall |
Contributor
There was a problem hiding this comment.
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
Files not reviewed (1)
- regression-test/suites/nereids_function_p0/agg_function/agg.groovy: Language not supported
Comments suppressed due to low confidence (2)
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/Sum0.java:124
- The searchSignature method does not explicitly handle string-like types. Consider adding an explicit else-if branch for string-like parameters to ensure consistent signature resolution for inputs that are cast from strings.
if (getArgument(0).getDataType() instanceof NullType) {
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/Sum.java:126
- Similar to Sum0, the searchSignature method in Sum does not explicitly address string-like types. Adding a dedicated branch for string-like inputs could improve clarity and maintain consistent type handling.
if (getArgument(0).getDataType() instanceof NullType) {
doris-robot
commented
Apr 10, 2025
TPC-H: Total hot run time: 34500 ms |
doris-robot
commented
Apr 10, 2025
TPC-DS: Total hot run time: 186316 ms |
doris-robot
commented
Apr 10, 2025
ClickBench: Total hot run time: 30.87 s |
morrySnowforce-pushed
the
sum_support_string
branch
from
April 11, 2025 06:26
f9567af to
910efa0CompareContributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
morrySnow
commented
Apr 15, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Apr 15, 2025
TPC-H: Total hot run time: 34331 ms |
doris-robot
commented
Apr 15, 2025
TPC-DS: Total hot run time: 192075 ms |
doris-robot
commented
Apr 15, 2025
ClickBench: Total hot run time: 31.37 s |
will cast string to double
morrySnowforce-pushed
the
sum_support_string
branch
from
April 15, 2025 10:35
910efa0 to
efdd39fComparemorrySnow
commented
Apr 15, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Apr 15, 2025
TPC-H: Total hot run time: 34163 ms |
doris-robot
commented
Apr 15, 2025
TPC-DS: Total hot run time: 193380 ms |
doris-robot
commented
Apr 15, 2025
ClickBench: Total hot run time: 31.33 s |
starocean999
approved these changes
Apr 18, 2025
Contributor
PR approved by at least one committer and no changes requested. |
924060929
approved these changes
Apr 18, 2025
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
apache#49954) ### What problem does this PR solve? will cast string to double ### Release note aggregate function sum and avg support string type as parameter
github-actionsBot
pushed a commit
that referenced
this pull request
Jun 19, 2025
#49954) ### What problem does this PR solve? will cast string to double ### Release note aggregate function sum and avg support string type as parameter
github-actionsBot
pushed a commit
that referenced
this pull request
Jul 15, 2025
#49954) ### What problem does this PR solve? will cast string to double ### Release note aggregate function sum and avg support string type as parameter
Closed
BiteTheDDDDt pushed a commit
to BiteTheDDDDt/incubator-doris
that referenced
this pull request
Sep 1, 2025
apache#4137) pick from apache#49954 picked to tmp branch tmp-selectdb-cloud-4.0.4.5-ave by apache#3936 Co-authored-by: starocean999 <lichi@selectdb.com>
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
Sign up for freeto 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.
What problem does this PR solve?
will cast string to double
Release note
aggregate function sum support string type as parameter
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)