hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikko Kivistö (JIRA) <j...@apache.org>
Subject [jira] [Reopened] (HIVE-3108) SELECT count(DISTINCT col) ... returns 0 if "col" is a partition column
Date Fri, 11 Sep 2015 09:27:45 GMT

     [ https://issues.apache.org/jira/browse/HIVE-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikko Kivistö reopened HIVE-3108:
---------------------------------

Doesn't work on Hive 0.13 or 0.14 (1.0) thus reopening this issue

> SELECT count(DISTINCT col) ... returns 0 if "col" is a partition column
> -----------------------------------------------------------------------
>
>                 Key: HIVE-3108
>                 URL: https://issues.apache.org/jira/browse/HIVE-3108
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.8.0, 0.9.0
>         Environment: Mac OSX running Apache distribution of hadoop and hive natively.
>            Reporter: Dean Wampler
>              Labels: Hive
>
> Suppose "stocks" is a managed OR external table, partitioned by "exchange" and "symbol".
"count(DISTINCT x)" returns 0 for either "exchange", "symbol", or both:
> hive> SELECT count(DISTINCT exchange), count(DISTINCT symbol) from stocks;
> 0  0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message