공부
[hive] hive --hivevar CURRENT_DATE="2012-09-16" -f hive_query.sql
승가비
2022. 12. 29. 21:38
728x90
https://stackoverflow.com/questions/12464636/how-to-set-variables-in-hive-scripts
How to set variables in HIVE scripts
I'm looking for the SQL equivalent of SET varname = value in Hive QL I know I can do something like this: SET CURRENT_DATE = '2012-09-16'; SELECT * FROM foo WHERE day >= @CURRENT_DATE But th...
stackoverflow.com
728x90