-
Notifications
You must be signed in to change notification settings - Fork 7
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
Wrap tiledb_handle_load_array_schema_request. #329
Wrap tiledb_handle_load_array_schema_request. #329
Conversation
serialize.go
Outdated
@@ -514,6 +514,23 @@ func DeserializeQueryAndArray(context *Context, buffer *Buffer, serializationTyp | |||
return array, query, nil | |||
} | |||
|
|||
// HandleLoadArraySchemaRequest Pass the array and serialized request to core which returns the serialized response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be made more descriptive? Most functions in this package pass something to core, so that doesn’t really illuminate much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks!
serialize.go
Outdated
@@ -514,6 +514,23 @@ func DeserializeQueryAndArray(context *Context, buffer *Buffer, serializationTyp | |||
return array, query, nil | |||
} | |||
|
|||
// HandleLoadArraySchemaRequest Pass the array and serialized request to core which returns the serialized response. | |||
func HandleLoadArraySchemaRequest(array *Array, serializationType SerializationType, request *Buffer) (*Buffer, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at a few of our functions above, most of them seem to put the request in front of the serialization type in the parameter list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
serialize.go
Outdated
} | ||
|
||
runtime.KeepAlive(request) | ||
runtime.KeepAlive(response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This really isn't necessary, since the buffer is returned, but isn't harmful either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed 👍
This wraps tiledb_handle_load_array_schema_request added in TileDB-Inc/TileDB#4399. This binding is required for https://github.com/TileDB-Inc/TileDB-Cloud-REST/pull/4686.