Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DF7BC961 for ; Mon, 26 May 2014 03:03:07 +0000 (UTC) Received: (qmail 13978 invoked by uid 500); 26 May 2014 03:03:02 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 13850 invoked by uid 500); 26 May 2014 03:03:02 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 13834 invoked by uid 500); 26 May 2014 03:03:01 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 13829 invoked by uid 99); 26 May 2014 03:03:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 May 2014 03:03:01 +0000 Date: Mon, 26 May 2014 03:03:01 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4561) Column stats : LOW_VALUE (or HIGH_VALUE) will always be 0.0000 ,if all the column values larger than 0.0 (or if all column values smaller than 0.0) 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-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-4561: ------------------------ Status: Open (was: Patch Available) Ok, I'll take a look. > Column stats : LOW_VALUE (or HIGH_VALUE) will always be 0.0000 ,if all the column values larger than 0.0 (or if all column values smaller than 0.0) > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-4561 > URL: https://issues.apache.org/jira/browse/HIVE-4561 > Project: Hive > Issue Type: Bug > Components: Statistics > Affects Versions: 0.13.0, 0.12.0 > Reporter: caofangkun > Assignee: Navis > Attachments: HIVE-4561.1.patch, HIVE-4561.2.patch, HIVE-4561.3.patch, HIVE-4561.4.patch.txt, HIVE-4561.5.patch.txt, HIVE-4561.6.patch.txt > > > if all column values larger than 0.0 DOUBLE_LOW_VALUE always will be 0.0 > or if all column values less than 0.0, DOUBLE_HIGH_VALUE will always be > hive (default)> create table src_test (price double); > hive (default)> load data local inpath './test.txt' into table src_test; > hive (default)> select * from src_test; > OK > 1.0 > 2.0 > 3.0 > Time taken: 0.313 seconds, Fetched: 3 row(s) > hive (default)> analyze table src_test compute statistics for columns price; > mysql> select * from TAB_COL_STATS \G; > CS_ID: 16 > DB_NAME: default > TABLE_NAME: src_test > COLUMN_NAME: price > COLUMN_TYPE: double > TBL_ID: 2586 > LONG_LOW_VALUE: 0 > LONG_HIGH_VALUE: 0 > DOUBLE_LOW_VALUE: 0.0000 # Wrong Result ! Expected is 1.0000 > DOUBLE_HIGH_VALUE: 3.0000 > BIG_DECIMAL_LOW_VALUE: NULL > BIG_DECIMAL_HIGH_VALUE: NULL > NUM_NULLS: 0 > NUM_DISTINCTS: 1 > AVG_COL_LEN: 0.0000 > MAX_COL_LEN: 0 > NUM_TRUES: 0 > NUM_FALSES: 0 > LAST_ANALYZED: 1368596151 > 2 rows in set (0.00 sec) -- This message was sent by Atlassian JIRA (v6.2#6252)