maropu commented on a change in pull request #26485: [SPARK-29860][SQL] Fix 
dataType mismatch issue for InSubquery.
URL: https://github.com/apache/spark/pull/26485#discussion_r345525351
 
 

 ##########
 File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
 ##########
 @@ -3304,6 +3304,15 @@ class SQLQuerySuite extends QueryTest with 
SharedSparkSession {
         """.stripMargin).collect()
     }
   }
+
+  test("SPARK-29860: Fix dataType mismatch issue for InSubquery") {
+    withTable("ta", "tb") {
+      sql("create table ta(id Decimal(18,0)) using parquet")
+      sql("create table tb(id Decimal(19,0)) using parquet")
+      sql("select * from ta where id in (select id from tb)").collect()
+      sql("select * from tb where id in (select id from ta)").collect()
 
 Review comment:
   Can you insert test data then check the answer with `assert`?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to