我正在使用HQL,我需要传递一个字符串数组作为参数。
select * from table_1 where id not in ('${idListToFilter}')
我想传递 idListToFilter
作为Hive查询的参数。试着使用像
idListToFilter="'1','2','3'"
但得到一个异常。
NoViableAltException(340@[319:1: constant : ( ( intervalLiteral )=> intervalLiteral