I am running the following query in the AWS DynamoDB PartiQL editor:
SELECT DISTINCT column1
FROM "my_lucky-table"
WHERE Id = "db05-5d1"
but I am getting the following error:
ValidationException: Unsupported token in expression: DISTINCT
Any idea how to deal with this? If DINSTICT is not supported in PartiQL what else can I run in order to get the unique values from column1 ?? Thank you.
PartiQL does not support
Distinct. I'm not sure what data type yourcolumn1is but for the most part you would need to do the distinct filtering on your client side not on the DynamoDB side.