-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while parsing ColumnStatistics of type timestamp #20929
Comments
We don't see this bug for Hive tables because we don't set the Lines 789 to 799 in 09a9141
Note that |
PR #21286 |
@aaneja , @tdcmeehan , Hive tables will need additional support in HiveColumnStatistics class, similar to Date type.
|
The SPI allows ColumnStatistics of any type to be retrieved during SHOW STATS queries
This does not work for
timestamp
types sincetoStringLiteral
and we throw an IllegalArgumentExceptionpresto/presto-main/src/main/java/com/facebook/presto/sql/rewrite/ShowStatsRewrite.java
Lines 344 to 359 in ba19543
Your Environment
An Iceberg table with a
timestamp
colum and table statistics up-to-dateExpected Behavior
SHOW STATS FOR <table>
should show min/max values for a timestamp column
Current Behavior
The query fails with below error (copied from the query info JSON) :
Possible Solution
Fix the
toStringLiteral
methodThe text was updated successfully, but these errors were encountered: