From issues-return-100288-archive-asf-public=cust-asf.ponee.io@hive.apache.org Fri Jan 5 20:46:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 4E142180647 for ; Fri, 5 Jan 2018 20:46:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3E158160C27; Fri, 5 Jan 2018 19:46:05 +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 83CA0160C15 for ; Fri, 5 Jan 2018 20:46:04 +0100 (CET) Received: (qmail 91864 invoked by uid 500); 5 Jan 2018 19:46:03 -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 91855 invoked by uid 99); 5 Jan 2018 19:46:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2018 19:46:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9F2D9C3325 for ; Fri, 5 Jan 2018 19:46:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tVQns9veS7XV for ; Fri, 5 Jan 2018 19:46:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4F88E5F286 for ; Fri, 5 Jan 2018 19:46:01 +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 8E6B1E0EFA for ; Fri, 5 Jan 2018 19:46:00 +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 48452240DE for ; Fri, 5 Jan 2018 19:46:00 +0000 (UTC) Date: Fri, 5 Jan 2018 19:46:00 +0000 (UTC) From: "Jesus Camacho Rodriguez (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-15640) Hive/Druid integration: null handling for metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-15640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313748#comment-16313748 ] Jesus Camacho Rodriguez commented on HIVE-15640: ------------------------------------------------ [~nishantbangarwa], I think this is fixed now? Can we close pointing to issue that fixed the issue? Thanks > Hive/Druid integration: null handling for metrics > ------------------------------------------------- > > Key: HIVE-15640 > URL: https://issues.apache.org/jira/browse/HIVE-15640 > Project: Hive > Issue Type: Bug > Components: Druid integration > Affects Versions: 2.2.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > Priority: Critical > > Null values for metrics in Druid and Hive are not handled the same way (_0.0_ vs _NULL_). > In Druid: > {code:sql} > SELECT i_brand_id, floor_day(`__time`), max(ss_quantity), sum(ss_wholesale_cost) as s > FROM store_sales_sold_time_subset > WHERE floor_day(`__time`) BETWEEN '1999-11-01 00:00:00' AND '1999-11-10 00:00:00' > GROUP BY i_brand_id, floor_day(`__time`) > ORDER BY s > LIMIT 10; > OK > 6015006 1999-11-03 00:00:00 0.0 0.0 > 9011009 1999-11-05 00:00:00 0.0 0.0 > 8003009 1999-11-03 00:00:00 11.0 1.0299999713897705 > 10005014 1999-11-05 00:00:00 86.0 1.100000023841858 > 6008007 1999-11-09 00:00:00 81.0 1.3700000047683716 > 6003003 1999-11-08 00:00:00 45.0 1.600000023841858 > 8008009 1999-11-08 00:00:00 98.0 1.7100000381469727 > 8015003 1999-11-02 00:00:00 10.0 1.7400000095367432 > 8004008 1999-11-10 00:00:00 45.0 1.7599999904632568 > 8009009 1999-11-07 00:00:00 81.0 1.7699999809265137 > {code} > In Hive: > {code:sql} > SELECT i_brand_id, floor_day(`__time`), max(ss_quantity), sum(ss_wholesale_cost) as s > FROM store_sales_sold_time_subset_hive > WHERE floor_day(`__time`) BETWEEN '1999-11-01 00:00:00' AND '1999-11-10 00:00:00' > GROUP BY i_brand_id, floor_day(`__time`) > ORDER BY s > LIMIT 10; > OK > 6015006 1999-11-03 00:00:00 NULL NULL > 9011009 1999-11-05 00:00:00 NULL NULL > 8003009 1999-11-03 00:00:00 11 1.03 > 10005014 1999-11-05 00:00:00 86 1.1 > 6008007 1999-11-09 00:00:00 81 1.37 > 6003003 1999-11-08 00:00:00 45 1.6 > 8008009 1999-11-08 00:00:00 98 1.71 > 8015003 1999-11-02 00:00:00 10 1.74 > 8004008 1999-11-10 00:00:00 45 1.76 > 8009009 1999-11-07 00:00:00 81 1.77 > {code} > However, for Druid dimensions, NULL values seem to be handled properly. -- This message was sent by Atlassian JIRA (v6.4.14#64029)