This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0-beta in repository https://gitbox.apache.org/repos/asf/doris.git
commit e30e986aa5c14d2753af23612bc629e5ad451af4 Author: morrySnow <[email protected]> AuthorDate: Mon Jun 5 17:49:08 2023 +0800 [fix](Nereids) throw NPE when sql cannot be parsed by all planner (#20440) --- fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java index 1c47f2f651..779c8ab772 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java @@ -652,7 +652,7 @@ public class ConnectProcessor { // note(wb) we should write profile after return result to mysql client // because write profile maybe take too much time // explain query stmt do not have profile - if (executor != null && !executor.getParsedStmt().isExplain() + if (executor != null && executor.getParsedStmt() != null && !executor.getParsedStmt().isExplain() && (executor.getParsedStmt() instanceof QueryStmt // currently only QueryStmt and insert need profile || executor.getParsedStmt() instanceof LogicalPlanAdapter || executor.getParsedStmt() instanceof InsertStmt)) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
