shivadarshan-devadiga commented on PR #60756:
URL: https://github.com/apache/spark/pull/60756#issuecomment-7042738701

   Thanks @gengliangwang. I fixed four of these in this push and replied to the 
exprId one inline. IN subqueries, INTERSECT and EXCEPT now get the same 
treatment as UNION: the narrower side is padded, and INTERSECT/EXCEPT outputs 
take the widest CHAR length, as the SQL standard does for every set operation 
of CHAR(n) and CHAR(m). This also fixes a gap that existed before this PR: 
`SELECT id FROM t3 WHERE c IN (SELECT c FROM t5)` and `SELECT c FROM t3 
INTERSECT SELECT c FROM t5` returned nothing on master, with no union involved. 
Views stored with the older, shorter length now narrow their values back to it, 
so they keep their stored type and the results they returned before.
   
   Can you please re-review?


-- 
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