Github user mgaido91 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21403#discussion_r205244503
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/results/subquery/negative-cases/subq-input-typecheck.sql.out
 ---
    @@ -113,15 +105,7 @@ WHERE
     struct<>
     -- !query 8 output
     org.apache.spark.sql.AnalysisException
    -cannot resolve '(named_struct('t1a', t1.`t1a`, 't1b', t1.`t1b`) 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: 2.
    -#columns in right hand side: 1.
    -Left side columns:
    -[t1.`t1a`, t1.`t1b`].
    -Right side columns:
    -[t2.`t2a`].;
    --- End diff --
    
    The point here is that I added a new check to fail analysis earlier (in 
order to avoid wasting time doing useless analysis). By this comment, are you 
suggesting to remove the check or to kind of replicate the error message? 
Thanks.


---

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

Reply via email to