Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: schema evolution fix-to-var reads #5321

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

bekadavis9
Copy link
Contributor

Schema evolution bug fix: Reads no longer fail after dropping a fixed attribute and adding it back as var-sized.

[sc-55085]


TYPE: BUG
DESC: Schema evolution bug fix: Reads no longer fail after dropping a fixed attribute and adding it back as var-sized.

@bekadavis9 bekadavis9 requested a review from ihnorton September 26, 2024 20:11
@bekadavis9 bekadavis9 marked this pull request as ready for review September 27, 2024 20:01
@bekadavis9 bekadavis9 force-pushed the rd/bugfix-schema_evolution-fixed_to_var branch from 196180f to c4a4d76 Compare October 1, 2024 18:22
@bekadavis9 bekadavis9 merged commit 034ed80 into dev Oct 7, 2024
63 checks passed
@bekadavis9 bekadavis9 deleted the rd/bugfix-schema_evolution-fixed_to_var branch October 7, 2024 15:12
bekadavis9 added a commit that referenced this pull request Nov 12, 2024
Schema evolution bug fix: Reads no longer fail after dropping a fixed
attribute and adding it back as var-sized.

Followup to #5321 to address a previously-missed case caught by
[TileDB-Inc/TileDB-Py/#2083](TileDB-Inc/TileDB-Py#2083)

[sc-55085]

---
TYPE: BUG
DESC: Schema evolution bug fix: Reads no longer fail after dropping a
fixed attribute and adding it back as var-sized, part 2.
Comment on lines 871 to 883
// Read the array
std::string buffer;
std::vector<uint64_t> offsets = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
std::vector<uint64_t> offsets(10);
Array array_r(ctx, array_uri, TILEDB_READ);
Subarray subarray(ctx, array_r);
subarray.add_range(0, 1, 10);
Subarray subarray_r(ctx, array_r);
subarray_r.add_range(0, 1, 10);
Query query_r(ctx, array_r, TILEDB_READ);
query_r.set_layout(layout)
.set_subarray(subarray)
.set_subarray(subarray_r)
.set_data_buffer("a", buffer)
.set_offsets_buffer("a", offsets);
query_r.submit();
array_r.close();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we CHECK something here?

Copy link
Member

@kounelisagis kounelisagis Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHECK(buffer.size() == 0) and CHECK(offsets.size() == 10) work.
Should we add them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants