My script looks like this:
INSERT OVERWRITE DIRECTORY '/user/xyz/reports/oos_table_sales/${DATE}'
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
SELECT * FROM outputs.oos_table_sale;
FOR $DATE, I would like current_date() to be used automatically. I have tried using function current_date but it is being taken as a string.How do I use value of current_date returned as value for ${DATE}