mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 04:56:58 +00:00
This patch adds a test that attributes which serve as a key for a secondary index still appear in the OldImage in an Alternator Stream. This is a special case, because although usually Alternator attributes are saved as map elements, not stand-alone Scylla columns, in the special case of secondary-index keys they *are* saved as actual Scylla columns in the base table. And it turns out we produce wrong results in this case: CDC's "preimage" does not currently include these columns if they didn't change, while DynamoDB requires that all columns, not just the changed ones, appear in OldImage. So the test added in this patch xfails on Alternator (and as usual, passes on DynamoDB). Refs #7030. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20200812144656.148315-1-nyh@scylladb.com>