yangzhg commented on a change in pull request #3135: support subquery in case when statement URL: https://github.com/apache/incubator-doris/pull/3135#discussion_r394817526
########## File path: fe/src/main/java/org/apache/doris/analysis/SelectStmt.java ########## @@ -341,7 +345,11 @@ public void analyze(Analyzer analyzer) throws AnalysisException, UserException { // of expr child and depth limits (toColumn() label may call toSql()). item.getExpr().analyze(analyzer); if (item.getExpr().contains(Predicates.instanceOf(Subquery.class))) { - throw new AnalysisException("Subquery is not supported in the select list."); + if (item.getExpr() instanceof CaseExpr) { Review comment: this is not allowed by in predicate or other predicate ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org