[ 
https://issues.apache.org/jira/browse/HIVE-10226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14482225#comment-14482225
 ] 

Ashutosh Chauhan commented on HIVE-10226:
-----------------------------------------

Using long column in metastore table to store max and min date is fine, but 
reusing {{LongColumnStatsData}} in thrift interface to return result not so 
much. I think we should add new thrift structure {DateColumnStatsData}} 
something like :
{code}
struct DateColumnStatsData {
1: optional Date minDate,
2: optional Date maxDate,
3: required i64 numNulls,
4: required i64 numDVs
}
{code}

and than metastore after retrieving # of days from backend, should compute 
Date, populate this struct and return results back to client.

> Column stats for Date columns not supported
> -------------------------------------------
>
>                 Key: HIVE-10226
>                 URL: https://issues.apache.org/jira/browse/HIVE-10226
>             Project: Hive
>          Issue Type: Bug
>          Components: Statistics
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-10226.1.patch
>
>
> {noformat}
> hive> explain analyze table revenues compute statistics for columns;
> 2015-03-30 23:47:45,133 ERROR [main()]: ql.Driver 
> (SessionState.java:printError(951)) - FAILED: UDFArgumentTypeException Only 
> integer/long/timestamp/float/double/string/binary/boolean/decimal type 
> argument is accepted but date is passed.
> {noformat}



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

Reply via email to