in dynamodb, table.scan(count=True) doesn't return the count value #780

raff opened this Issue May 24, 2012 · 1 comment


None yet
2 participants

raff commented May 24, 2012

According to the DynamoDB API passing Count=true will return just the items count and not the items itself, but boto doesn't pass the attribute through and it doesn't correctly process the result (i.e. it always uses the TableGenerator to parse the list of returned items).

I think it should use Table.query_count() . But I always get this error if no filter is applied:

boto.dynamodb2.exceptions.ValidationException: ValidationException: 400 Bad Request
{u'message': u'Conditions can be of length 1 or 2 only', u'__type': u''}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment