如何查询Dynamo DB中的布尔值

发布于 2025-02-05 17:47:32 字数 526 浏览 4 评论 0原文

response = cls.table_advisor_settings.query(
            IndexName = "complete_compliance_status-index",
            KeyConditionExpression=Key("complete_compliance_status").eq(False))

当我尝试在DynamoDB中查询Maoke查询时,我会在以下错误:

botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the Query operation: One or more parameter values were invalid: Condition parameter type does not match schema type

在DynamoDB中:ploty_compliance_status“具有布尔值。

response = cls.table_advisor_settings.query(
            IndexName = "complete_compliance_status-index",
            KeyConditionExpression=Key("complete_compliance_status").eq(False))

When I am trying to maoke query in DynamoDb I am Getting below error :

botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the Query operation: One or more parameter values were invalid: Condition parameter type does not match schema type

In DynamoDB "complete_compliance_status" has boolean value.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文