Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/15417#discussion_r84836930 --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ResolveNaturalJoinSuite.scala --- @@ -31,39 +31,46 @@ class ResolveNaturalJoinSuite extends AnalysisTest { lazy val aNotNull = a.notNull lazy val bNotNull = b.notNull lazy val cNotNull = c.notNull + lazy val aNew = newAttribute(a) + lazy val bNotNullNew = newAttribute(bNotNull) lazy val r1 = LocalRelation(b, a) lazy val r2 = LocalRelation(c, a) lazy val r3 = LocalRelation(aNotNull, bNotNull) lazy val r4 = LocalRelation(cNotNull, bNotNull) + lazy val r2New = LocalRelation(c, aNew) + lazy val r4New = LocalRelation(cNotNull, bNotNullNew) + + private def newAttribute(a: AttributeReference): Attribute = --- End diff -- `newAttribute` -> `deDuplicatedAttribute`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org