Pralay Ghosh
02/28/2023, 5:40 PMSortKey. Will the connector provide any option to get the "latest" data for a composite key? Any pointers would be very helpful.
Many Thanks.Abhilash S.R
02/28/2023, 7:01 PMHong Teoh
03/02/2023, 12:08 PMWill the connector provide any option to get the “latest” data for a composite key?Hey, this sounds like you want to read from DynamoDb. If so, the DDB sink is not what you want. We can read from DynamoDbStreams However, if you are writing to DynamoDB, we use the BatchWriteRecords API so it doesn’t care about specifying sort/primary key https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
Hong Teoh
03/02/2023, 12:08 PMPralay Ghosh
03/02/2023, 10:15 PMaws dynamodb update-item \
--table-name ProductCatalog \
--key '{"Id": {"N": "456"}}' \
--update-expression "SET Price = Price - :discount" \
--condition-expression "Price > :limit" \
--expression-attribute-values <file://values.json>
And we don't want to do "sort" inside flink api which might have performance implications. Any idea? Thanks.Hong Teoh
03/07/2023, 8:41 AM