hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16096) Predicate `__time` In ("date", "date") or Between "date" and "date" are not pushed to druid.
Date Mon, 06 Mar 2017 14:25:32 GMT

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

Jesus Camacho Rodriguez commented on HIVE-16096:
------------------------------------------------

[~bslim], is this one related to HIVE-16025/CALCITE-1655, or is there some specific logic
involved because it is a filter on the time dimension?

> 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
>            Assignee: slim bouguerra
>              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
(v6.3.15#6346)

Mime
View raw message