I've tried using UUID's integer representation as integer hash key in DynamoDB, but that has failed with error:
DynamoDBValidationError: DynamoDBValidationError: 400 Bad Request
{'message': 'Attempting to store more than 38 significant digits in a Number',
'__type': 'com.amazon.coral.validate#ValidationException'}
Which on one hand makes sense, as UUIDs are 128-bit, which can be up to 39 decimal digits. On the other hand it made me wonder...
Does DynamoDB store integer hash key as it's decimal representation? Is there any advantage of using integer hash key over string hash key?