Status: Patch Available
Affects Version/s: None
Fix Version/s: None
This bug is part of a series of issues and surprising behavior I encountered writing a reporting script that would aggregate values and give rows different classifications based on an the aggregate. Addressing some or all of these issues would make HPL/SQL more accessible to newcomers.
In HPL/SQL: cast('10.0' as integer); results in:
Unhandled exception in HPL/SQL
java.lang.NumberFormatException: For input string: "10.0"
hive> select cast('10.0' as integer);
Time taken: 4.563 seconds, Fetched: 1 row(s)
hive> select cast('10.3' as integer);