When I'm using variable substitution in hive, I meet some errors, but I need your help.
My code:
set hievar:b='on t1.id=t2.id where t2.id is null';
select * from t_old as t1 full outer join t_new as t2 ${b};
when I run this code in hive shell, it give me some error about ${b}
.
I also try this:
set hivevar:c='select * from t_old as t1 full outer join t_new as t2 on t1.id=t2.id where t2.id is null';
${c};
It gives me the same error.