xiaokang commented on code in PR #35823: URL: https://github.com/apache/doris/pull/35823#discussion_r1634118284
########## fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java: ########## @@ -1866,7 +1867,14 @@ private void sendResult(boolean isOutfileQuery, boolean isSendFields, Queriable // 2. If this is a query, send the result expr fields first, and send result data back to client. RowBatch batch; CoordInterface coordBase = null; - if (queryStmt instanceof SelectStmt && ((SelectStmt) parsedStmt).isPointQueryShortCircuit()) { + if (statementContext.isShortCircuitQuery()) { + ShortCircuitQueryContext shortCircuitQueryContext = + statementContext.getShortCircuitQueryContext() != null + ? statementContext.getShortCircuitQueryContext() + : new ShortCircuitQueryContext(planner, (Queriable) parsedStmt); + coordBase = new PointQueryExecutor(shortCircuitQueryContext, + context.getSessionVariable().getMaxMsgSizeOfResultReceiver()); + } else if (queryStmt instanceof SelectStmt && ((SelectStmt) parsedStmt).isPointQueryShortCircuit()) { Review Comment: add comment for new old optimizer -- 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