goamz icon indicating copy to clipboard operation
goamz copied to clipboard

[DynamoDB] Table.GetItem does not support bool type.

Open anphung opened this issue 10 years ago • 1 comments

It omits boolean key-value pair.

For example, in dynamodb table, we have a row with ID as HashKey, Name as RangeKey:

Id (String): "1"
Name (String): "Example"
Male (Boolean): True
Age (Number): 100

Using Table.GetItem

key := &dynamodb.Key {
        HashKey: "1"
        RangeKey: "Example"
}
item, err := myTable.GetItem(key)

In item, there are only Id, Name, Age fields. There is no Male field. I think we can fix it here: github.com/crowdmob/goamz/dynamodb/item.go: func parseAttributes

anphung avatar Jan 27 '15 02:01 anphung

Yeah, as far as I know, only S (string) type is supported. Read this: https://github.com/crowdmob/goamz/issues/308

alimoeeny avatar Jan 27 '15 10:01 alimoeeny