[
https://issues.apache.org/jira/browse/CALCITE-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992284#comment-15992284
]
Julian Hyde commented on CALCITE-1769:
--------------------------------------
[~bslim], I have been trying to write a test case. This is important because
Hive talks to Calcite in RelNode, not SQL. Our coverage will be limited if we
can only write tests in SQL. In CALCITE-1772, I have written a mechanism where
you can supply a RelNode tree and execute it via the JDBC driver (or via the
test framework used by DruidAdapterIT), and it seems to work.
However, the test case I have written, DruidAdapterIT.testPushCastNumeric,
gives the same result with and without your cast fix. Can you take a look
please?
> 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)