turboFei 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_r346380524
########## File path: sql/core/src/test/resources/sql-tests/results/subquery/negative-cases/subq-input-typecheck.sql.out ########## @@ -132,15 +132,6 @@ WHERE t5c FROM t5) -- !query 9 schema -struct<> +struct<t4a:double,t4b:string,t4c:string> -- !query 9 output -org.apache.spark.sql.AnalysisException -cannot resolve '(named_struct('t4a', t4.`t4a`, 't4b', t4.`t4b`, 't4c', t4.`t4c`) IN (listquery()))' due to data type mismatch: -The data type of one or more elements in the left hand side of an IN subquery -is not compatible with the data type of the output of the subquery -Mismatched columns: -[(t4.`t4a`:double, t5.`t5a`:decimal(18,0)), (t4.`t4c`:string, t5.`t5c`:bigint)] -Left side: -[double, string, string]. -Right side: -[decimal(18,0), string, bigint].; Review comment: Maybe we should remove this statement directly, because it is not a negative case. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org