Skip to content

Commit

Permalink
Add data validation on schema evolution test after attribute re-add. (#…
Browse files Browse the repository at this point in the history
…5399)

After evolving a schema to drop an `int` attribute and re-add it as a
`std::string` type, validate that the attribute's data is now empty.

[sc-60287]

---
TYPE: NO_HISTORY
DESC: Add data validation on schema evolution test after attribute
re-add.
  • Loading branch information
bekadavis9 authored Jan 9, 2025
1 parent c36bce6 commit 1282910
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/src/unit-cppapi-schema-evolution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ TEST_CASE(
.set_offsets_buffer("a", offsets);
query_r.submit();
array_r.close();
CHECK(buffer.size() == 0);
CHECK_THAT(buffer, Catch::Matchers::Equals(std::string{""}));
CHECK(offsets.size() == 10);
CHECK_THAT(
offsets,
Catch::Matchers::Equals(
std::vector<uint64_t>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}));

// Read the original array
std::vector<int> a_data(10);
Expand Down

0 comments on commit 1282910

Please sign in to comment.