You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it looks like casting a column to any decimal precision is translated to decimal(10,0).
Hive:
hive> create view decimal_view as select cast(a as decimal (6,2)) b from dect;
OK
hive> show create table decimal_view;
OK
CREATE VIEW `decimal_view` AS select cast(`dect`.`a` as decimal (6,2)) `b` from `newschema`.`dect`
Presto:
presto> show create view decimal_view;
Create View
--------------------------------------------
CREATE VIEW hive.newschema.decimal_view AS
SELECT CAST("a" AS DECIMAL(10, 0)) "b"
FROM
"newschema"."dect"
The text was updated successfully, but these errors were encountered:
it looks like casting a column to any decimal precision is translated to
decimal(10,0)
.Hive:
Presto:
The text was updated successfully, but these errors were encountered: