maropu commented on issue #27648: [SPARK-24994][SQL] : Support filter pushdown 
for short and byte without explicit casting
URL: https://github.com/apache/spark/pull/27648#issuecomment-589512300
 
 
   > 2 is within short range still filter is not pushed down.
   > But it pushes filter if we cast the literal to smallint:
   > select * from t where id = cast(2 as smallint) ; 
   
   Is that pushdown legal? if `id` is short, `id = 2` is parsed as `cast(id as 
int) = 2`. So, I feel that the semantics  are different between them.

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