Skip to content

Commit

Permalink
[Spark-3222] [SQL] Cross join support in HiveQL
Browse files Browse the repository at this point in the history
We can simple treat cross join as inner join without join conditions.

Author: Daoyuan Wang <[email protected]>
Author: adrian-wang <[email protected]>

Closes #2124 from adrian-wang/crossjoin and squashes the following commits:

8c9b7c5 [Daoyuan Wang] add a test
7d47bbb [adrian-wang] add cross join support for hql
  • Loading branch information
adrian-wang authored and marmbrus committed Aug 26, 2014
1 parent 62f5009 commit 52fbdc2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"create_nested_type",
"create_skewed_table1",
"create_struct_table",
"cross_join",
"ct_case_insensitive",
"database_location",
"database_properties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ private[hive] object HiveQl {

val joinType = joinToken match {
case "TOK_JOIN" => Inner
case "TOK_CROSSJOIN" => Inner
case "TOK_RIGHTOUTERJOIN" => RightOuter
case "TOK_LEFTOUTERJOIN" => LeftOuter
case "TOK_FULLOUTERJOIN" => FullOuter
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit 52fbdc2

Please sign in to comment.