passing multiple dates as a paramters to Hive query
Collect array of distinct values using collect_set and concatenate it with delimiter ‘,’. This will produce list without outer quotes 2009-02-01′,’2009-04-01 and in the second script add outer quotes ‘ also, or you can add them in the first query. And when executing in inline sql (-e option) you do not need to pass hiveconf … Read more