You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "slim bouguerra (JIRA)" <ji...@apache.org> on 2018/02/17 05:59:00 UTC

[jira] [Resolved] (HIVE-16096) Predicate `__time` In ("date", "date") or Between "date" and "date" are not pushed to druid.

     [ https://issues.apache.org/jira/browse/HIVE-16096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

slim bouguerra resolved HIVE-16096.
-----------------------------------
    Resolution: Fixed

> Predicate `__time` In ("date", "date")  or Between  "date" and "date" are not pushed to druid.
> ----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-16096
>                 URL: https://issues.apache.org/jira/browse/HIVE-16096
>             Project: Hive
>          Issue Type: Bug
>          Components: Druid integration
>            Reporter: slim bouguerra
>            Priority: Major
>              Labels: calcite, druid
>
> {code}
>  explain select * from login_druid where `__time` in ("2003-1-1", "2004-1-1" );
> OK
> Plan optimized by CBO.
> Stage-0
>   Fetch Operator
>     limit:-1
>     Select Operator [SEL_2]
>       Output:["_col0","_col1","_col2"]
>       Filter Operator [FIL_4]
>         predicate:(__time) IN ('2003-1-1', '2004-1-1')
>         TableScan [TS_0]
>           Output:["__time","userid","num_l"],properties:{"druid.query.json":"{\"queryType\":\"select\",\"dataSource\":\"druid_user_login\",\"descending\":false,\"intervals\":[\"1900-01-01T00:00:00.000Z/3000-01-01T00:00:00.000Z\"],\"dimensions\":[\"userid\"],\"metrics\":[\"num_l\"],\"granularity\":\"all\",\"pagingSpec\":{\"threshold\":16384},\"context\":{\"druid.query.fetch\":false}}","druid.query.type":"select"}
> {code}
> Between case
> {code}
>  explain select * from login_druid where `__time` between "2003-1-1" and "2004-1-1" ;
> OK
> Plan optimized by CBO.
> Stage-0
>   Fetch Operator
>     limit:-1
>     Select Operator [SEL_2]
>       Output:["_col0","_col1","_col2"]
>       Filter Operator [FIL_4]
>         predicate:__time BETWEEN '2003-1-1' AND '2004-1-1'
>         TableScan [TS_0]
>           Output:["__time","userid","num_l"],properties:{"druid.query.json":"{\"queryType\":\"select\",\"dataSource\":\"druid_user_login\",\"descending\":false,\"intervals\":[\"1900-01-01T00:00:00.000Z/3000-01-01T00:00:00.000Z\"],\"dimensions\":[\"userid\"],\"metrics\":[\"num_l\"],\"granularity\":\"all\",\"pagingSpec\":{\"threshold\":16384},\"context\":{\"druid.query.fetch\":false}}","druid.query.type":"select"}
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)