简体   繁体   中英

AWS boto3 attribute_not_exists

currDBraw = table.scan(
  FilterExpression=Attr('purebetId').gt(0) & "attribute_not_exists(ouline)",
  ProjectionExpression="event,homeTeam,awayTeam,startDate,purebetId" 
)

Im new to aws and boto3, with this, i get

AND operation cannot be applied to value attribute_not_exists(ouline) of type <class 'str'> directly

and im unsure of what it means or what i can do

attribute_not_exists is a conditional expression used only in update/insert operations

ConditionExpression='attribute_not_exists(something)

What you need to do is just compare to null

currDBraw = table.scan(
  FilterExpression=Attr('purebetId').gt(0) & "outline = null",
  ProjectionExpression="event,homeTeam,awayTeam,startDate,purebetId" 
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM