【发布时间】:2020-11-23 08:42:51
【问题描述】:
我有一个带有如下本地索引的表。
如何查询 startDate
据我所知,要对结果进行排序,我需要使用 InvoiceDateLocalIndex。但是如果我使用过,我会收到错误“过滤器表达式只能包含非主键属性:主键属性:InvoiceDate”
"IndexName": "InvoiceDateLocalIndex",
"KeySchema": [
{
"AttributeName": "FinanceYear",
"KeyType": "HASH"
},
{
"AttributeName": "InvoiceDate",
"KeyType": "RANGE"
}
]
【问题讨论】:
标签: amazon-dynamodb dynamodb-queries amazon-dynamodb-index