BiteTheDDDDt commented on code in PR #47068: URL: https://github.com/apache/doris/pull/47068#discussion_r1921733778
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/PercentileArray.java: ########## @@ -74,6 +75,14 @@ public PercentileArray(boolean distinct, Expression arg0, Expression arg1) { super("percentile_array", distinct, arg0, arg1); } + @Override + public void checkLegalityBeforeTypeCoercion() { + if (!getArgument(1).isConstant()) { Review Comment: If the limit is constant, can we also add the limit of not null and [0,1] value range? -- 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