我有一个带有以下KeySchema的表:{AttributeName: USER_ID,KeyType: HASH}, 用户ID只是一个整数,但是COMPLETED是记录创建时的时间戳。Item item = tbl.getItem("USER_ID", "4216634082");AmazonDynamoDBException: The provided key element does no
.withHashKey("actual_key", "1234"); final ItemCollection<QueryOutcome> result = index.query(spec);
我非常确定'actual_key:1234‘项确实存在于我的表中,但是我得到了一个空的结果集。我们可以在GSI中使用'.withHashKey‘吗?