Skip to content
New issue

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

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

Already on GitHub? # to your account

Add CurrentDomain API support. #5041

Merged
merged 16 commits into from
Jun 7, 2024
Merged

Add CurrentDomain API support. #5041

merged 16 commits into from
Jun 7, 2024

Conversation

robertbindar
Copy link
Contributor

@robertbindar robertbindar commented Jun 4, 2024

This PR adds the foundation for the CurrentDomain API:

  • format change in array schema and disk serialization
  • plumbing so you can create/open an array with current_domain data using sm APIs
  • array schema dump extension
  • test coverage

To be done C and CPP API that wrap APIs defined here.

[sc-42489]


TYPE: FEATURE
DESC: Add CurrentDomain API support.

format_spec/shape.md Outdated Show resolved Hide resolved
tiledb/sm/serialization/array_schema.cc Outdated Show resolved Hide resolved
memory_tracker_->get_resource(MemoryType::ENUMERATION)) {
memory_tracker_->get_resource(MemoryType::ENUMERATION))
, shape_to_expand_(
make_shared<const Shape>(memory_tracker, constants::shape_version)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be nullptr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nullptr is better, thanks.

tiledb/sm/enums/shape_type.h Outdated Show resolved Hide resolved
tiledb/sm/array_schema/ndrectangle.h Outdated Show resolved Hide resolved
tiledb/sm/array_schema/ndrectangle.h Outdated Show resolved Hide resolved
tiledb/sm/array_schema/ndrectangle.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/shape.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/test/unit-shape.cc Outdated Show resolved Hide resolved
tiledb/sm/fragment/fragment_metadata.cc Outdated Show resolved Hide resolved
@robertbindar robertbindar changed the title Add Shape API support Add CurrentDomain API support Jun 6, 2024
Copy link
Contributor

@KiterLuc KiterLuc left a comment

Choose a reason for hiding this comment

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

2 nits and let's add a test for trying to add out of order ndrect ranges.

tiledb/sm/array_schema/test/unit_current_domain.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/test/unit_current_domain.cc Outdated Show resolved Hide resolved
@robertbindar
Copy link
Contributor Author

@KiterLuc KiterLuc changed the title Add CurrentDomain API support Add CurrentDomain API support. Jun 7, 2024
@KiterLuc KiterLuc merged commit 9116d3c into dev Jun 7, 2024
60 of 66 checks passed
@KiterLuc KiterLuc deleted the rbin/ch42489/shape_api branch June 7, 2024 16:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants