From 895160bc2ef27bca21aec0c3cbbce97d5d774fa2 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Thu, 14 Mar 2024 13:13:47 -0700 Subject: [PATCH] Add note about left semi and left anti joins --- .../test/scala/org/apache/comet/exec/CometExecSuite.scala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala b/spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala index 09d3a6263..72e67bf5c 100644 --- a/spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala +++ b/spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala @@ -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") } } }