Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 19935200C2F for ; Mon, 6 Mar 2017 15:25:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 18232160B76; Mon, 6 Mar 2017 14:25:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 609B9160B73 for ; Mon, 6 Mar 2017 15:25:39 +0100 (CET) Received: (qmail 80175 invoked by uid 500); 6 Mar 2017 14:25:38 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 80166 invoked by uid 99); 6 Mar 2017 14:25:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 14:25:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EBA711A02B4 for ; Mon, 6 Mar 2017 14:25:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id q8UvnOvpo7Po for ; Mon, 6 Mar 2017 14:25:37 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE8B25F4AA for ; Mon, 6 Mar 2017 14:25:36 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 39AD0E0419 for ; Mon, 6 Mar 2017 14:25:33 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D3A2C24168 for ; Mon, 6 Mar 2017 14:25:32 +0000 (UTC) Date: Mon, 6 Mar 2017 14:25:32 +0000 (UTC) From: "Jesus Camacho Rodriguez (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-16096) Predicate `__time` In ("date", "date") or Between "date" and "date" are not pushed to druid. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Mar 2017 14:25:40 -0000 [ 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)