Skip to content

Commit

Permalink
Add note about left semi and left anti joins
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Mar 14, 2024
1 parent c95659c commit 895160b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class CometExecSuite extends CometTestBase {
//
// Full join: build right
// sql("SELECT /*+ SHUFFLE_HASH(tbl_b) */ * FROM tbl_a FULL JOIN tbl_b ON tbl_a._2 = tbl_b._1")
//
// val left = sql("SELECT * FROM tbl_a")
// val right = sql("SELECT * FROM tbl_b")
//
// Left semi and anti joins are only supported with build right in Spark.
// left.join(right, left("_2") === right("_1"), "leftsemi")
// left.join(right, left("_2") === right("_1"), "leftanti")
}
}
}
Expand Down

0 comments on commit 895160b

Please sign in to comment.