maropu commented on a change in pull request #26970: [SPARK-28825][SQL][DOC] 
Documentation for Explain Command
URL: https://github.com/apache/spark/pull/26970#discussion_r361027978
 
 

 ##########
 File path: docs/sql-ref-syntax-qry-explain.md
 ##########
 @@ -19,4 +19,126 @@ license: |
   limitations under the License.
 ---
 
-**This page is under construction**
+### Description
+
+The `EXPLAIN` statement provides the execution plan for the statement. 
+By default, `EXPLAIN` provides information about the physical plan.
+`EXPLAIN` does not support `DESCRIBE TABLE` statement.
 
 Review comment:
   What does this statement mean? We can accept `EXPLAIN DESCRIBE TABLE`;
   ```
   scala> sql("explain describe table gstest_empty").show(1, false)
   
+---------------------------------------------------------------------------------------------------+
   |plan                                                                        
                       |
   
+---------------------------------------------------------------------------------------------------+
   |== Physical Plan ==
   Execute DescribeTableCommand
      +- DescribeTableCommand `gstest_empty`, false
   
   |
   
+---------------------------------------------------------------------------------------------------+
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to