diff --git a/tests/sstable_3_x_test.cc b/tests/sstable_3_x_test.cc index 6d61003e84..47580fd896 100644 --- a/tests/sstable_3_x_test.cc +++ b/tests/sstable_3_x_test.cc @@ -3440,7 +3440,7 @@ SEASTAR_THREAD_TEST_CASE(test_write_collection_incremental_update) { lw_shared_ptr mt = make_lw_shared(s); - // UPDATE collection_incremental_update SET col = col + {2} WHERE pk = 1; + // UPDATE collection_incremental_update USING TIMESTAMP 1525385507816568 SET col = col + {2} WHERE pk = 1; auto key = partition_key::from_deeply_exploded(*s, { 1 }); mutation mut{s, key}; @@ -3451,7 +3451,8 @@ SEASTAR_THREAD_TEST_CASE(test_write_collection_incremental_update) { mt->apply(mut); tmpdir tmp = write_and_compare_sstables(s, mt, table_name); - validate_read(s, tmp.path, {mut}); + auto written_sst = validate_read(s, tmp.path, {mut}); + validate_stats_metadata(s, written_sst, table_name); } SEASTAR_THREAD_TEST_CASE(test_write_multiple_partitions) { diff --git a/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-Statistics.db b/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-Statistics.db index 00bec5b884..bf0460ba0f 100644 Binary files a/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-Statistics.db and b/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-Statistics.db differ diff --git a/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-TOC.txt b/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-TOC.txt new file mode 100644 index 0000000000..ba1fabad12 --- /dev/null +++ b/tests/sstables/3.x/uncompressed/write_collection_incremental_update/mc-1-big-TOC.txt @@ -0,0 +1,6 @@ +Data.db +Digest.crc32 +Index.db +TOC.txt +Filter.db +Statistics.db