AWS Timestream:功能问题:任何。要么函数不存在,要么依赖函数有问题

AWS Timestream: Problems with function : ANY. Either the function does not exist, or there is a problem with a dependent function

我正在根据 https://docs.aws.amazon.com/timestream/latest/developerguide/comparison-functions.all-any-some.html

尝试使用 ANY()、SOME() 和 ALL() 进行查询

按照

SELECT * FROM "mytable"."temperature" WHERE device_name <> ANY('Foo', 'Bar')

我总是收到这个错误:

功能问题:任何问题。要么函数不存在,要么依赖函数有问题

根据https://forums.aws.amazon.com/thread.jspa?messageID=964438&#964438

The keyword VALUES should be used if the comparison values is a list of literals e.g. SELECT * FROM "mytable"."temperature" WHERE device_name ANY(VALUES 'Foo', 'Bar'). Same for ALL and SOME too. The alternative syntax is SELECT * FROM "mytable"."temperature" WHERE device_name ANY (SELECT 'Foo' UNION ALL SELECT 'Bar')