View Plan
Function
Executing this statement returns the physical execution plan for the specified SQL statement. When the EXTENDED keyword is specified, both the logical plan and the physical execution plan are output.
Syntax
1 | EXPLAIN [EXTENDED | CODEGEN] statement; |
Keywords
EXTENDED: When this keyword is specified, both the logical plan and the physical execution plan are output.
CODEGEN: When this keyword is specified, code generated by codegen is also output, if any.
Precautions
None.
Example
Return the logical plan and physical execution plan for the SQL statement SELECT * FROM test.
1 | EXPLAIN EXTENDED select * from test; |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot