cloud-fan commented on code in PR #49287:
URL: https://github.com/apache/spark/pull/49287#discussion_r1897170971
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/NormalizePlan.scala:
##########
@@ -134,3 +137,30 @@ object NormalizePlan extends PredicateHelper {
case _ => condition // Don't reorder.
}
}
+
+/**
+ * A substitute for the [[LocalRelation]] that has comparable `data` field.
[[LocalRelation]]'s
+ * `data` is incomparable for maps, because [[ArrayBasedMapData]] doesn't
define [[equals]].
+ */
+case class ComparableLocalRelation(
+ override val output: Seq[Attribute],
+ data: Seq[Seq[Expression]],
+ override val isStreaming: Boolean,
+ stream: Option[SparkDataStream])
+ extends LeafNode
Review Comment:
```suggestion
stream: Option[SparkDataStream]) extends LeafNode
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]