Question
Passing parameters to multiple queries using beeline
Is it possible to send hive variables to multiple hql files/queries and execute them in a single hive session?
when I try something like this, only the first query is picking up the variables and other is returning no result.
$beeline -u "{$url}" --hivevar FROM=2020 --hivevar TO=2021 -e "$(cat loadTable1.hql loadTable2.hql)"
Where both the hqls take these two variables as parameters.
My goal is to run my hqls in parallel in one hive sessions, are there any cons to this approach?
-Thanks

