arindam patra created SPARK-42860:
-------------------------------------

             Summary: Add analysed logical mode in 
org.apache.spark.sql.execution.ExplainMode
                 Key: SPARK-42860
                 URL: https://issues.apache.org/jira/browse/SPARK-42860
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: arindam patra


We have a service that submits spark sql jobs to a spark cluster .

we want to validate the sql query before submitting the job . We are currently 
using df.explain(extended=true) which generates parsed , analysed , optimised 
logical plan and physical plan . 

But generating  optimised logical plan  sometimes takes more time for e.g if 
you have applied a filter on a partitioned column , spark will list all 
directories and take the required ones . 

For our query validation purpose this doesnt make sense and it would be great 
if there is a explain mode that will only print the parsed and analysed logical 
plans only



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to