You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "xiaochen zhou (Jira)" <ji...@apache.org> on 2023/04/01 01:17:00 UTC

[jira] [Comment Edited] (SPARK-42860) Add analysed logical mode in org.apache.spark.sql.execution.ExplainMode

    [ https://issues.apache.org/jira/browse/SPARK-42860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707402#comment-17707402 ] 

xiaochen zhou edited comment on SPARK-42860 at 4/1/23 1:16 AM:
---------------------------------------------------------------

[https://github.com/apache/spark/pull/40631]


was (Author: zxcoccer):
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org