Skip to content

Commit 8dbcd48

Browse files
committed
address_reivew_feedback
1 parent ff6856d commit 8dbcd48

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

spark/src/test/scala/org/apache/comet/exec/CometJoinSuite.scala

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,9 @@ class CometJoinSuite extends CometTestBase {
708708
// Include NULL keys: predicate `_1 > _1` returns NULL with a NULL operand, so
709709
// those rows must not contribute to the join output.
710710
val left: Seq[(Integer, Int)] =
711-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 7), (50, -1))
711+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 7), (50, -1))
712712
val right: Seq[(Integer, Int)] =
713-
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq((null, 1))
713+
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq[(Integer, Int)]((null, 1))
714714
withParquetTable(left, "tbl_a") {
715715
withParquetTable(right, "tbl_b") {
716716
val df =
@@ -726,9 +726,9 @@ class CometJoinSuite extends CometTestBase {
726726
test("BroadcastNestedLoopJoin cross join with count-only output") {
727727
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
728728
val left: Seq[(Integer, Int)] =
729-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 9))
729+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 9))
730730
val right: Seq[(Integer, String)] =
731-
(0 until 5).map(i => ((i: Integer), s"w_$i")) ++ Seq((null, "w_null"))
731+
(0 until 5).map(i => ((i: Integer), s"w_$i")) ++ Seq[(Integer, String)]((null, "w_null"))
732732
withParquetTable(left, "tbl_a") {
733733
withParquetTable(right, "tbl_b") {
734734
val df = sql("SELECT /*+ BROADCAST(tbl_b) */ count(*) FROM tbl_a, tbl_b")
@@ -744,9 +744,9 @@ class CometJoinSuite extends CometTestBase {
744744
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
745745
// NULL left keys must still appear in the output (LEFT OUTER preserves them)
746746
val left: Seq[(Integer, Int)] =
747-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 7), (50, -1))
747+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 7), (50, -1))
748748
val right: Seq[(Integer, Int)] =
749-
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq((null, 1))
749+
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq[(Integer, Int)]((null, 1))
750750
withParquetTable(left, "tbl_a") {
751751
withParquetTable(right, "tbl_b") {
752752
val df =
@@ -764,9 +764,9 @@ class CometJoinSuite extends CometTestBase {
764764
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
765765
// NULL keys never match (predicate evaluates to NULL
766766
val left: Seq[(Integer, Int)] =
767-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 7), (50, -1))
767+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 7), (50, -1))
768768
val right: Seq[(Integer, Int)] =
769-
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq((null, 1))
769+
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq[(Integer, Int)]((null, 1))
770770
withParquetTable(left, "tbl_a") {
771771
withParquetTable(right, "tbl_b") {
772772
val df =
@@ -783,9 +783,9 @@ class CometJoinSuite extends CometTestBase {
783783
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
784784
// LEFT ANTI keeps left rows that have NO match (left rows with NULL keys must appear in the output)
785785
val left: Seq[(Integer, Int)] =
786-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 7), (50, -1))
786+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 7), (50, -1))
787787
val right: Seq[(Integer, Int)] =
788-
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq((null, 1))
788+
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq[(Integer, Int)]((null, 1))
789789
withParquetTable(left, "tbl_a") {
790790
withParquetTable(right, "tbl_b") {
791791
val df =
@@ -802,9 +802,9 @@ class CometJoinSuite extends CometTestBase {
802802
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
803803
// RIGHT OUTER preserves right rows.
804804
val left: Seq[(Integer, Int)] =
805-
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq((null, 9))
805+
(0 until 10).map(i => ((i: Integer), i + 5)) ++ Seq[(Integer, Int)]((null, 9))
806806
val right: Seq[(Integer, Int)] =
807-
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq((null, 7), (50, -1))
807+
(0 until 100).map(i => ((i: Integer), i % 5)) ++ Seq[(Integer, Int)]((null, 7), (50, -1))
808808
withParquetTable(left, "tbl_a") {
809809
withParquetTable(right, "tbl_b") {
810810
val df =
@@ -820,9 +820,9 @@ class CometJoinSuite extends CometTestBase {
820820
test("BroadcastNestedLoopJoin cross join without condition (materialized rows)") {
821821
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
822822
val left: Seq[(Integer, Int)] =
823-
(0 until 5).map(i => ((i: Integer), i * 10)) ++ Seq((null, 99))
823+
(0 until 5).map(i => ((i: Integer), i * 10)) ++ Seq[(Integer, Int)]((null, 99))
824824
val right: Seq[(Integer, String)] =
825-
(0 until 4).map(i => ((i: Integer), s"v_$i")) ++ Seq((null, "v_null"))
825+
(0 until 4).map(i => ((i: Integer), s"v_$i")) ++ Seq[(Integer, String)]((null, "v_null"))
826826
withParquetTable(left, "tbl_a") {
827827
withParquetTable(right, "tbl_b") {
828828
val df =
@@ -838,9 +838,9 @@ class CometJoinSuite extends CometTestBase {
838838
test("BroadcastNestedLoopJoin LEFT OUTER without condition") {
839839
withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
840840
val left: Seq[(Integer, Int)] =
841-
(0 until 5).map(i => ((i: Integer), i * 10)) ++ Seq((null, 99))
841+
(0 until 5).map(i => ((i: Integer), i * 10)) ++ Seq[(Integer, Int)]((null, 99))
842842
val right: Seq[(Integer, String)] =
843-
(0 until 4).map(i => ((i: Integer), s"v_$i")) ++ Seq((null, "v_null"))
843+
(0 until 4).map(i => ((i: Integer), s"v_$i")) ++ Seq[(Integer, String)]((null, "v_null"))
844844
withParquetTable(left, "tbl_a") {
845845
withParquetTable(right, "tbl_b") {
846846
val df =

0 commit comments

Comments
 (0)