Github user hvanhovell commented on a diff in the pull request:
https://github.com/apache/spark/pull/14867#discussion_r77420330
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/PlanParserSuite.scala
---
@@ -360,10 +360,25 @@ class PlanParserSuite extends PlanTest {
test("left anti join", LeftAnti, testExistence)
test("anti join", LeftAnti, testExistence)
+ // Test natural cross join
+ intercept("select * from a natural cross join b")
+
+ // Test natural join with a condition
+ intercept("select * from a natural join b on a.id = b.id")
+
// Test multiple consecutive joins
assertEqual(
"select * from a join b join c right join d",
table("a").join(table("b")).join(table("c")).join(table("d"),
RightOuter).select(star()))
+
+ // SPARK-17296
+ assertEqual(
+ "select * from t1 cross join t2 join t3 on t3.id = t1.id join t4 on
t4.id = t1.id",
--- End diff --
Good catch. I have added a test.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]