Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/18968#discussion_r134596955
--- Diff:
sql/core/src/test/resources/sql-tests/results/subquery/negative-cases/subq-input-typecheck.sql.out
---
@@ -72,16 +72,7 @@ t1a IN (SELECT t2a, t2b
struct<>
-- !query 5 output
org.apache.spark.sql.AnalysisException
-cannot resolve '(t1.`t1a` IN (listquery(t1.`t1a`)))' due to data type
mismatch:
-The number of columns in the left hand side of an IN subquery does not
match the
-number of columns in the output of subquery.
-#columns in left hand side: 1.
-#columns in right hand side: 2.
-Left side columns:
-[t1.`t1a`].
-Right side columns:
-[t2.`t2a`, t2.`t2b`].
- ;
+cannot resolve '(t1.`t1a` IN (listquery(t1.`t1a`)))' due to data type
mismatch: Arguments must be same type but were: IntegerType !=
StructType(StructField(t2a,IntegerType,false),
StructField(t2b,IntegerType,false));
--- End diff --
This new message is confusing when users using the In Subquery.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]