当我在 hive 中使用变量替换时,我遇到了一些错误,但我需要你的帮助。
我的代码:
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};
当我在 hive shell 中运行此代码时,它给了我一些关于${b}
.
我也试试这个:
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};
它给了我同样的错误。