[英]AWS boto3 attribute_not_exists
currDBraw = table.scan(
FilterExpression=Attr('purebetId').gt(0) & "attribute_not_exists(ouline)",
ProjectionExpression="event,homeTeam,awayTeam,startDate,purebetId"
)
我是 aws 和 boto3 的新手,有了這個,我明白了
AND 運算不能直接應用於 <class 'str'> 類型的值 attribute_not_exists(ouline)
我不確定這意味着什么或我能做什么
attribute_not_exists 是僅用於更新/插入操作的條件表達式
ConditionExpression='attribute_not_exists(something)
您需要做的只是與 null 進行比較
currDBraw = table.scan(
FilterExpression=Attr('purebetId').gt(0) & "outline = null",
ProjectionExpression="event,homeTeam,awayTeam,startDate,purebetId"
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.