hive中的变量
set tmp = 1;
select
1 + '${hiveconf:tmp}' as a1,
1 + ${hiveconf:tmp} as a2,
1 + '1' as a3,
1 + 1 as a4
结果:2.0,2,2.0,2
set tmp = 1;
select
1 + '${hiveconf:tmp}' as a1,
1 + ${hiveconf:tmp} as a2,
1 + '1' as a3,
1 + 1 as a4
结果:2.0,2,2.0,2