DynamoDB 如何在 PartiQL 查询中使用索引?

DynamoDB how to use index in PartiQL queries?

我看过有关 PartiQL 语法的 dynamoDB 文档:

SELECT expression  [, ...] 
FROM table[.index]
[ WHERE condition ] [ [ORDER BY key  [DESC|ASC] , ...]

但实际上:

select * from dev .pk-all-index
where "pk" = 'config' AND ("brand" = 'tesla' OR contains("aliases", 'tesla.com'))

给我错误:

An error occurred during the execution of the command. ValidationException: Statement wasn't well formed, can't be processed: Unexpected keyword

from "tablename"."indexname"

您可能希望将 table 名称和索引分别放在引号下。

SELECT * FROM "dev"."pk-all-index" WHERE "pk" = 'config' AND ("brand" = 'tesla' OR contains("aliases", 'tesla.com'))