yuqi1129 opened a new pull request, #14895:
URL: https://github.com/apache/gravitino/pull/14895

   ### What changes were proposed in this pull request?
   
   `LancePropertiesUtils.resolveLanceStorageOptions` now keeps the catalog 
value for any `lance.storage.*` key that the catalog sets. Table properties can 
only add keys that the catalog does not set.
   
   ### Why are the changes needed?
   
   Table properties come from the table creator. Catalog storage options 
usually hold the server's credentials. A user with `CREATE_TABLE` could 
register a table with `lance.storage.endpoint` (or a similar key) set to 
another address. The server then opens that table with the catalog credentials 
and sends signed requests to the address the user chose. Describe also returned 
the table value. This was found while checking #13696.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. A table property can no longer override a storage option that the 
catalog sets. Tables that need a different endpoint or credentials should use a 
separate catalog. The docs are updated.
   
   ### How was this patch tested?
   
   - Updated `TestLancePropertiesUtils`.
   - `TestLanceTableOperations`, `LanceRESTServiceIT`, 
`LanceTableAuthorizationIT` and `CatalogGenericCatalogLanceIT` (embedded) pass.
   


-- 
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]

Reply via email to