You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/03/17 01:13:17 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #5475: [Profile] Visualize the query plan and query profile

morningman commented on a change in pull request #5475:
URL: https://github.com/apache/incubator-doris/pull/5475#discussion_r595644429



##########
File path: fe/fe-core/src/main/cup/sql_parser.cup
##########
@@ -2653,14 +2661,14 @@ describe_stmt ::=
     {:
         RESULT = new DescribeStmt(table, true);
     :}
-    | describe_command opt_verbose:isVerbose query_stmt:query
+    | describe_command opt_explain_options:options query_stmt:query
     {:
-        query.setIsExplain(true, isVerbose);
+        query.setIsExplain(options);
         RESULT = query;
     :}   
     | describe_command insert_stmt:stmt
     {:
-        stmt.getQueryStmt().setIsExplain(true);
+        stmt.getQueryStmt().setIsExplain(new ExplainOptions(true, false));
         RESULT = stmt;
     :}
     ;

Review comment:
       KW_DESCRIBE means both "desc" and "explain",
   see `fe/fe-core/src/main/jflex/sql_scanner.flex`




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org