@hadoop user
Could you try issuing your select statement something like this -
"select * from tempo where model=${mavar1} and ${marvar2};"
I tried a similar thing on Hive CLI and it worked.
hive> create table test(i int,s string);
hive> insert into test values (1,'aa'),(2,'bb');
hive> set hivevar:testvar=1;
hive> select * from test where i=${testvar};
OK
1aa
Time taken: 0.261 seconds, Fetched: 1 row(s)