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

[jira] [Commented] (SPARK-35411) Essential information missing in TreeNode json string

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

huangtengfei commented on SPARK-35411:
--------------------------------------

Maybe we can write out product objects which contain expressions or plan to avoid such cases. 

> Essential information missing in TreeNode json string
> -----------------------------------------------------
>
>                 Key: SPARK-35411
>                 URL: https://issues.apache.org/jira/browse/SPARK-35411
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.1
>            Reporter: huangtengfei
>            Priority: Minor
>
> TreeNode can be serialized to json string with the method toJSON() or prettyJson(). To avoid OOM issues, [SPARK-17426|http://example.comhttps//issues.apache.org/jira/browse/SPARK-17426] only keep part of Seq data that can be written out to result json string.
>  Essential data like [cteRelations|https://github.com/apache/spark/blob/v3.1.1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala#L497] in node With, [branches|https://github.com/apache/spark/blob/v3.1.1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/conditionalExpressions.scala#L123] in CaseWhen will be skipped and written out as null.



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

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