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

Implement tiledb_handle_load_array_schema_request #4399

Merged

Conversation

davisp
Copy link
Contributor

@davisp davisp commented Oct 4, 2023

This adds all of the Capnp messages, serialization code, rest client functions, and server side request processing for handling the new load array schema handler.

Notably, this does not update tiledb_array_schema_load to use these new functions because that cannot happen until after TileDb-Cloud-REST is deployed with a libtiledb that contains this commit.


TYPE: C_API
DESC: Implement tiledb_handle_load_array_schema_request

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #34939: Write tests for tiledb_handle_load_array_schema_request.

@davisp davisp force-pushed the pd/sc-34939/add-tiledb-handle-load-array-schema-request branch from 4121b04 to 4ac6af0 Compare October 4, 2023 20:14
This adds all of the Capnp messages, serialization code, rest client
functions, and server side request processing for handling the new load
array schema handler.

Notably, this does not update `tiledb_array_schema_load` to use these
new functions because that cannot happen until after TileDb-Cloud-REST
is deployed with a libtiledb that contains this commit.
@davisp davisp force-pushed the pd/sc-34939/add-tiledb-handle-load-array-schema-request branch from 4ac6af0 to ea40a36 Compare October 4, 2023 20:19
@KiterLuc KiterLuc self-requested a review October 5, 2023 15:36
data.reset_size();
data.reset_offset();

switch (serialization_type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see a lot of these switch cases in the serialization code... Is this something we could generalize? If so, let's file a follow up story I don't want to block this PR for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this from the prior art in other places. I do think this whole function could probably be turned into a template though since they're pretty boiler plate without a lot of changes for different message types.

@KiterLuc KiterLuc merged commit 4ec5beb into dev Oct 6, 2023
52 checks passed
@KiterLuc KiterLuc deleted the pd/sc-34939/add-tiledb-handle-load-array-schema-request branch October 6, 2023 08:59
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.

2 participants