[ 
https://issues.apache.org/jira/browse/CALCITE-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998787#comment-15998787
 ] 

slim bouguerra commented on CALCITE-1769:
-----------------------------------------

This patch will evaluate/push the cast on the literal (right hand side) which 
will be filter with a = 5. It has nothing to deal with cast over a thought 
please correct me if am wrong.
now i agree that the cast on the left hand side should be either pushed as 
extraction or not push the filter.
Does that make sense ? 

> Push Filters down to druid when there a cast to numeric
> -------------------------------------------------------
>
>                 Key: CALCITE-1769
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1769
>             Project: Calcite
>          Issue Type: Bug
>          Components: druid
>            Reporter: slim bouguerra
>            Assignee: Julian Hyde
>             Fix For: 1.13.0
>
>
> Currently if we have cast to numeric over literal filter will not get pushed.
> For instance query like {code}SELECT page from druid_table_1 WHERE page < 5 
> group by page {code} from hive will introduce a cast over `5`.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to