morrySnow commented on code in PR #21865: URL: https://github.com/apache/doris/pull/21865#discussion_r1267509566
########## fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java: ########## @@ -421,23 +421,26 @@ private void handleQuery() { } StatementBase parsedStmt = stmts.get(i); - if (parsedStmt instanceof SelectStmt && nereidsParseException != null - && ctx.getSessionVariable().isEnableNereidsPlanner() - && !ctx.getSessionVariable().enableFallbackToOriginalPlanner) { - Exception exception = new Exception( - String.format("Nereids cannot parse the SQL, and fallback disabled. caused by: \n\n%s", - nereidsParseException.getMessage()), nereidsParseException); - // audit it and break - handleQueryException(exception, auditStmt, null, null); - break; - } - parsedStmt.setOrigStmt(new OriginStatement(originStmt, i)); parsedStmt.setUserInfo(ctx.getCurrentUserIdentity()); executor = new StmtExecutor(ctx, parsedStmt); ctx.setExecutor(executor); try { + // support select hint e.g. select /*+ SET_VAR(query_timeout=1) */ sleep(3); Review Comment: u should update class `org.apache.doris.nereids.processor.pre.EliminateLogicalSelectHint` -- 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