Bingandbing opened a new pull request, #17872: URL: https://github.com/apache/doris/pull/17872
# Proposed changes ## Problem summary This pr is to support function sum(a,b,c...) function, which a,b,c... are Variable Number of Arguments. This aggregate function means sum(a) with a NOT NULL && b NOT NULL && ... NOT NULL For example: table a b 1 NULL 2 2 select sum(a,b) from table; --> result: 2. which value a=1 is filtered by NULL value of b; The important part of this feature is to determine the function signature of sum. Now when variables in sum are not in the same type, they will cast to biggest size of the variables implicitly in fe when analyze. Other rule of using this function is the same to original sum aggregate function ## Checklist(Required) * [ ] Does it affect the original behavior * [ ] Has unit tests been added * [ ] Has document been added or modified * [ ] Does it need to update dependencies * [x] Is this PR support rollback (If NO, please explain WHY) ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org