benqwu commented on issue #9573: URL: https://github.com/apache/gravitino/issues/9573#issuecomment-3692537864
```DeclareTable[ΒΆ](https://lance.org/format/namespace/rest/impl-spec/#declaretable) Declares a new Lance table, reserving the table name and location without creating actual data files. HTTP Request: POST /v1/table/{id}/declare Content-Type: application/json The request body contains an optional location: { "location": "s3://bucket/data/users.lance" } The implementation: Parse the table identifier from the route path {id} Extract the parent namespace from the identifier Validate the parent namespace exists Check if a table with this identifier already exists Determine the table location (use provided location or generate one) Reserve the table in the server's storage Register the table in the namespace Response: { "location": "s3://bucket/data/users.lance", "storage_options": { "aws_access_key_id": "...", "aws_secret_access_key": "..." } } ``` Based on the examples provided in the spec https://lance.org/format/namespace/rest/impl-spec/#declaretable, I find this confusing: the declare request carries the location parameter, yet the server returns information related to storage_options in the response. Where does the server obtain this information? I do not see any interface for configuring storage_options defined in the spec. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
