【发布时间】:2021-08-13 09:47:02
【问题描述】:
response = tblEth_orders.query(
IndexName = 'date-index',
KeyConditionExpression= '#temp >= :myDate',
ExpressionAttributeValues= {
':myDate': week_ago_t
},
ExpressionAttributeNames= {
"#temp": "date"
}
)
response = response['Items']
print(response)
botocore.exceptions.ClientError:调用查询操作时发生错误(ValidationException):不支持查询键条件
请告诉我解决此错误的另一种方法。
【问题讨论】:
-
请提供有关表和索引的更多详细信息
-
[ {'AttributeName': 'date', 'AttributeType': 'S'}, {'AttributeName': 'listing_id', 'AttributeType': 'S'}, {'AttributeName': 'order_id', 'AttributeType': 'S'}, {'AttributeName': 'username', 'AttributeType': 'S'} ] 关于表
标签: python amazon-dynamodb boto3