DynamoDB local index not updated when data inserted in table

0

Hello,

Considering the below use-case:

  • create DynamoDB table with local index, from Management Console (Local Index Sort Key same name as Table Partition Key; need to query table PK)
  • create one Item in the table from Management Console
  • expect that the index will contain data related to the created item
  • Management Console PartiQL returns the data from table
  • when use Management Console PartiQL to select data from index, no data is returned : select * from PictureTextKeyPhrases.PartitionKeyIndex

Why is this behaviour ?

Thank you,
Mihai ADAM

已提問 1 個月前檢視次數 112 次
1 個回答
2

The reason for your issue is how you define your statement, DynamoDB thinks you are trying to access a table called PictureTextKeyPhrases.PartitionKeyIndex, however your table is PictureTextKeyPhrases and your index PartitionKeyIndex, so you should use the following syntax:

SELECT * FROM "PictureTextKeyPhrases"."PartitionKeyIndex"
profile pictureAWS
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南