Checking the Execution Plan
Function
This statement returns the logical plan and physical execution plan for the SQL statement.
Syntax
1
|
EXPLAIN [EXTENDED | CODEGEN] statement; |
Keywords
EXTENDED: After this keyword is specified, the logical and physical plans are outputted at the same time.
CODEGEN: After this keyword is specified, code generated by using the Codegen is also outputted.
Precautions
None
Example
To return the logical and physical plans of SELECT * FROM test, run the following statement:
1
|
EXPLAIN EXTENDED select * from test; |
Feedback
Was this page helpful?
Provide feedbackThank 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