Number

问题描述 投票:0回答:1

我正在使用HQL,我需要传递一个字符串数组作为参数。

select * from table_1 where id not in ('${idListToFilter}')

我想传递 idListToFilter 作为Hive查询的参数。试着使用像

idListToFilter="'1','2','3'"

但得到一个异常。

NoViableAltException(340@[319:1: constant : ( ( intervalLiteral )=> intervalLiteral

amazon-web-services hive amazon-emr
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.