Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.14.0, 1.0.0, 1.1.0
-
None
Description
These queries produce an error :
DROP TABLE IF EXISTS foo; CREATE TABLE foo (id int) STORED AS ORC; INSERT INTO TABLE foo VALUES (1); INSERT INTO TABLE foo VALUES (2); INSERT INTO TABLE foo VALUES (3); INSERT INTO TABLE foo VALUES (4); INSERT INTO TABLE foo VALUES (5); SELECT max(id) FROM foo; ANALYZE TABLE foo COMPUTE STATISTICS FOR COLUMNS id; SELECT max(id) FROM foo;
The last query throws org.apache.hive.service.cli.HiveSQLException
0: jdbc:hive2://nc-h04:10000/casino> SELECT max(id) FROM foo; +-------------+--+ | _c0 | +-------------+--+ org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException 0: jdbc:hive2://nc-h04:10000/casino>
Attachments
Attachments
Issue Links
- is duplicated by
-
HIVE-9735 aggregate ( smalllint ) fails when ORC file used ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short
- Closed
- links to