blob: 3788301ebb3d2740f0de396347900f1b7638c621 [file] [log] [blame]
set hive.compat=latest;
-- With ansi sql arithmetic enabled, int / int => exact numeric type
explain select cast(key as int) / cast(key as int) from src limit 1;
select cast(key as int) / cast(key as int) from src limit 1;
set hive.compat=0.12;
-- With ansi sql arithmetic disabled, int / int => double
explain select cast(key as int) / cast(key as int) from src limit 1;
select cast(key as int) / cast(key as int) from src limit 1;