mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
The tests in this patch, which pass on DynamoDB but fail on Alternator, reproduce a bug described in issue #6951. This bug makes it impossible for a Query (or Scan) to filter on an attribute if that attribute is not requested to be included in the output. This patch includes two xfailing tests of this type: One testing a combination of FilterExpression and ProjectionExpression, and the second testing a combination of QueryFilter and AttributesToGet; These two pairs are, respectively, DynamoDB's newer and older syntaxes to achieve the same thing. Additionally, we add two xfailing tests that demonstrates that combining old and new style syntax (e.g., FilterExpression with AttributesToGet) should not have been allowed (DynamoDB doesn't allow such combinations), but Alternator currently accepts these combinations. Refs #6951 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20200729210346.1308461-1-nyh@scylladb.com>