在HQL里使用set方式设置的变量

参考:https://stackoverflow.com/questions/12464636/how-to-set-variables-in-hive-scripts

hive> set CURRENT_DATE='2012-09-16';
hive> select * from foo where day >= ${hiveconf:CURRENT_DATE}
posted @ 2021-07-22 16:18  梦醒江南·Infinite  阅读(292)  评论(0编辑  收藏  举报