You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/02/21 06:03:47 UTC

[GitHub] [spark] maropu commented on issue #27648: [SPARK-24994][SQL] : Support filter pushdown for short and byte without explicit casting

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org