cloud-fan commented on a change in pull request #33284:
URL: https://github.com/apache/spark/pull/33284#discussion_r669611812
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/DecorrelateInnerQuerySuite.scala
##########
@@ -203,23 +204,24 @@ class DecorrelateInnerQuerySuite extends PlanTest {
test("correlated values in project") {
val outerPlan = testRelation2
- val innerPlan = Project(Seq(OuterReference(x), OuterReference(y)),
OneRowRelation())
- val correctAnswer = Project(Seq(x, y), DomainJoin(Seq(x, y),
OneRowRelation()))
+ val innerPlan = Project(Seq(OuterReference(x).as("x1"),
OuterReference(y).as("y1")), t0)
+ val correctAnswer = Project(
+ Seq(x.as("x1"), y.as("y1"), x, y), DomainJoin(Seq(x, y), t0))
Review comment:
will we optimize away the `DomainJoin` at the end?
--
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]