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"
it looks like casting a column to any decimal precision is translated to
decimal(10,0)
.Hive:
Presto: