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

Maxim Gekk commented on SPARK-25440:
------------------------------------

[~shashidha...@gmail.com] Call *df.queryExecution.debug.toFile(<file name>)*. 
You can see examples in this test suite: 
https://github.com/apache/spark/blob/97dc4c0bfc3a15d364a376c6f87cb921d8d6980d/sql/core/src/test/scala/org/apache/spark/sql/execution/QueryExecutionSuite.scala

> Dump query execution info to a file
> -----------------------------------
>
>                 Key: SPARK-25440
>                 URL: https://issues.apache.org/jira/browse/SPARK-25440
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Output of the explain() doesn't contain full information and in some cases 
> can be truncated. Besides of that it saves info to a string in memory which 
> can cause OOM. The ticket aims to solve the problem and dump info about query 
> execution to a file. Need to add new method to queryExecution.debug which 
> accepts a path to a file. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to