ivoson commented on a change in pull request #32557:
URL: https://github.com/apache/spark/pull/32557#discussion_r633937423
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala
##########
@@ -1001,6 +1001,9 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]]
extends Product with Tre
case t: Seq[_] if t.forall(_.isInstanceOf[TreeNode[_]]) ||
t.forall(_.isInstanceOf[Partitioning]) ||
t.forall(_.isInstanceOf[DataType]) =>
JArray(t.map(parseToJson).toList)
+ // Scan Seq[Product] to make sure essential information can be written out.
+ case t: Seq[_] if t.forall(_.isInstanceOf[Product]) =>
Review comment:
Sure, make sense. Will merge it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]