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 E7D19FEA9 for ; Fri, 19 Apr 2013 19:47:17 +0000 (UTC) Received: (qmail 66702 invoked by uid 500); 19 Apr 2013 19:47:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 66631 invoked by uid 500); 19 Apr 2013 19:47:17 -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 66353 invoked by uid 500); 19 Apr 2013 19:47:17 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 66306 invoked by uid 99); 19 Apr 2013 19:47:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Apr 2013 19:47:16 +0000 Date: Fri, 19 Apr 2013 19:47:16 +0000 (UTC) From: "Robin Morris (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4386) max() and min() return NULL on partition column; distinct() returns nothing 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-4386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robin Morris updated HIVE-4386: ------------------------------- Description: partitioned_table is partitioned on year, month, day. > select max(day) from partitioned_table where year=2013 and month=4; spins up zero mappers, one reducer, and returns NULL. Same for > select min(day) from ... > select distinct(day) from... returns nothing at all. Using an explicit intermediate table does work: > create table foo_max as select day from partitioned_table where year=2013 and month=4; > select max(day) from foo_max; drop table foo_max; Several map-reduce jobs later, the correct answer is given. was: partitioned_table is partitioned on year, month, day. > select max(day) from partitioned_table where year=2013 and month=4; spins up zero mappers, one reducer, and returns NULL. Same for > select min(day) from ... > select distinct(day) from... returns nothing at all. > max() and min() return NULL on partition column; distinct() returns nothing > --------------------------------------------------------------------------- > > Key: HIVE-4386 > URL: https://issues.apache.org/jira/browse/HIVE-4386 > Project: Hive > Issue Type: Bug > Components: UDF > Affects Versions: 0.8.1 > Reporter: Robin Morris > > partitioned_table is partitioned on year, month, day. > > select max(day) from partitioned_table where year=2013 and month=4; > spins up zero mappers, one reducer, and returns NULL. Same for > > select min(day) from ... > > select distinct(day) from... returns nothing at all. > Using an explicit intermediate table does work: > > create table foo_max as select day from partitioned_table where year=2013 and month=4; > > select max(day) from foo_max; drop table foo_max; > Several map-reduce jobs later, the correct answer is given. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira