[ https://issues.apache.org/jira/browse/SPARK-42860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707402#comment-17707402 ]
xiaochen zhou commented on SPARK-42860: --------------------------------------- https://github.com/apache/spark/pull/40626 > 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 > Priority: Blocker > > 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