seratch/AWScala

describe not showing global secondary index

peterjam28 opened this issue · 1 comments

{
"Table": {
"TableArn": "arn:aws:dynamodb:ddblocal:000000000000:table/promcomm_unit",
"AttributeDefinitions": [
{
"AttributeName": "id",
"AttributeType": "S"
},
{
"AttributeName": "entity",
"AttributeType": "S"
},
{
"AttributeName": "previous",
"AttributeType": "S"
}
],
"GlobalSecondaryIndexes": [
{
"IndexSizeBytes": 297,
"IndexName": "previous-id-idx",
"Projection": {
"ProjectionType": "ALL"
},
"ProvisionedThroughput": {
"WriteCapacityUnits": 5,
"ReadCapacityUnits": 5
},
"IndexStatus": "ACTIVE",
"KeySchema": [
{
"KeyType": "HASH",
"AttributeName": "previous"
},
{
"KeyType": "RANGE",
"AttributeName": "entity"
}
],
"IndexArn": "arn:aws:dynamodb:ddblocal:000000000000:table/promcomm_unit/index/previous-id-idx",
"ItemCount": 3
}
],
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"WriteCapacityUnits": 5,
"LastIncreaseDateTime": 0.0,
"ReadCapacityUnits": 5,
"LastDecreaseDateTime": 0.0
},
"TableSizeBytes": 297,
"TableName": "promcomm_unit",
"TableStatus": "ACTIVE",
"KeySchema": [
{
"KeyType": "HASH",
"AttributeName": "id"
},
{
"KeyType": "RANGE",
"AttributeName": "entity"
}
],
"ItemCount": 3,
"CreationDateTime": 1480396427.438
}
}

When i describe the above table, the global secondary index is empty: -

Table(promcomm_unit,id,Some(entity),ArrayBuffer({AttributeName: id,AttributeType: S}, {AttributeName: entity,AttributeType: S}, {AttributeName: previous,AttributeType: S}),List(),List(),Some({ReadCapacityUnits: 5,WriteCapacityUnits: 5}))

hey @seratch couldn't reproduce it. table.globalSecondaryIndexes() seems to work fine. I vote to close this issue.