PHILO-HE commented on code in PR #7704:
URL: https://github.com/apache/incubator-gluten/pull/7704#discussion_r1818718146


##########
backends-velox/src/test/scala/org/apache/gluten/execution/VeloxHashJoinSuite.scala:
##########
@@ -144,4 +147,38 @@ class VeloxHashJoinSuite extends 
VeloxWholeStageTransformerSuite {
       }.size == 1)
     }
   }
+
+  test("ColumnarBuildSideRelation transform support multiple key columns") {
+    withTable("t1", "t2") {
+      val df1 =
+        (0 until 50).map(i => (i % 2, i % 3, s"${i % 25}")).toDF("t1_c1", 
"t1_c2", "date").as("df1")
+      val df2 = (0 until 50)
+        .map(i => (i % 11, i % 13, s"${i % 10}"))
+        .toDF("t2_c1", "t2_c2", "date")
+        .as("df2")
+      df1.write.partitionBy("date").saveAsTable("t1")
+      df2.write.partitionBy("date").saveAsTable("t2")
+
+      val df = sql("""
+                     |SELECT t1.date, t1.t1_c1, t2.t2_c2
+                     |FROM t1
+                     |JOIN t2 ON t1.date = t2.date
+                     |WHERE t1.date=if(3 <= t2.t2_c2, if(3 < t2.t2_c1, 3, 
t2.t2_c1), t2.t2_c2)
+                     |ORDER BY t1.date DESC, t1.t1_c1 DESC, t2.t2_c2 DESC
+                     |LIMIT 1
+                     |""".stripMargin)
+
+      checkAnswer(df, Row("3", 1, 4) :: Nil)
+      // collect the DDP plan.

Review Comment:
   typo: DDP -> DPP



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to