Description
TreeNode can be serialized to json string with the method toJSON() or prettyJson(). To avoid OOM issues, SPARK-17426 only keep part of Seq data that can be written out to result json string.
Essential data like cteRelations in node With, branches in CaseWhen will be skipped and written out as null.