hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10226) Column stats for Date columns not supported
Date Tue, 07 Apr 2015 00:45:13 GMT

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

Gopal V commented on HIVE-10226:
--------------------------------

[~jdere]: I am running the latest build against a hive-1.0 metastore, that won't be ever hit
via the qtests.

{code}
org.apache.thrift.protocol.TProtocolException: Cannot write a TUnion with no set value!
    at org.apache.thrift.TUnion$TUnionStandardScheme.write(TUnion.java:240)
    at org.apache.thrift.TUnion$TUnionStandardScheme.write(TUnion.java:213)
    at org.apache.thrift.TUnion.write(TUnion.java:152)
    at org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj$ColumnStatisticsObjStandardScheme.write(ColumnStatisticsObj.java:550)
    at org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj$ColumnStatisticsObjStandardScheme.write(ColumnStatisticsObj.java:488)
    at org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj.write(ColumnStatisticsObj.java:414)
    at org.apache.hadoop.hive.metastore.api.TableStatsResult$TableStatsResultStandardScheme.write(TableStatsResult.java:388)
    at org.apache.hadoop.hive.metastore.api.TableStatsResult$TableStatsResultStandardScheme.write(TableStatsResult.java:338)
    at org.apache.hadoop.hive.metastore.api.TableStatsResult.write(TableStatsResult.java:288)
    at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_statistics_req_result$get_table_statistics_req_resultStandardScheme.write(ThriftHiveMetastore.java)
    at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_statistics_req_result$get_table_statistics_req_resultStandardScheme.write(ThriftHiveMetastore.java)
    at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_statistics_req_result.write(ThriftHiveMetastore.java)
    at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:53)
    at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:110)
    at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:106)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
    at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:118)
    at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
{code}

The error is probably not relevant except for rolling upgrade scenarios (the standard one
is client upgraded, server yet to be restarted), since the error is not a FATAL.

Adding a new Stats type is probably a non-backwards compat change anyway, so perhaps we can
mark this as a wire protocol change.

> 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)

Mime
View raw message