I am working on HQL where I need to pass an array of strings as an argument:
select * from table_1 where id not in ('${idListToFilter}')
I want to pass idListToFilter as an argument in Hive query. Tried using values like
idListToFilter="'1','2','3'"
but getting an exception:
NoViableAltException(340@[319:1: constant : ( ( intervalLiteral )=> intervalLiteral | Number | dateLiteral | timestampLiteral | StringLiteral | stringLiteralSequence | IntegralLiteral | NumberLiteral | charSetStringLiteral | booleanValue | KW_NULL -> TOK_NULL );])
Can someone help?