Skip to content

fix(catalog): propagate namespace storage options into read options#522

Open
summaryzb wants to merge 1 commit into
lance-format:mainfrom
summaryzb:fix_read_option
Open

fix(catalog): propagate namespace storage options into read options#522
summaryzb wants to merge 1 commit into
lance-format:mainfrom
summaryzb:fix_read_option

Conversation

@summaryzb
Copy link
Copy Markdown
Contributor

describeTable/declareTable responses can carry per-table storage options (vended credentials, region overrides) that must reach the read path. Pass them through createReadOptions at all five namespace-based call sites (createTable, stageCreate, stageCreateOrReplace, resolveIdentifier, and the time-travel rebuild in loadTableInternal).

previously, if we get vended credentials via rest namespace, load table will fail, since storage options is not set to readOptions

describeTable/declareTable responses can carry per-table storage options
(vended credentials, region overrides) that must reach the read path.
Pass them through createReadOptions at all five namespace-based call
sites (createTable, stageCreate, stageCreateOrReplace, resolveIdentifier,
and the time-travel rebuild in loadTableInternal).

Also rename the six-arg createReadOptions overload to
createPathBasedReadOptions so namespace code paths can no longer
accidentally drop storage options, switch the seven-arg overload's
storageOptions param to Optional<Map<String,String>> for consistency
with the other optional params, and document the order dependency
between storageOptions and withCatalogDefaults inline.

Change-Id: Ib252c8948cf65bab848e1257a8536fffac7db1a6
@github-actions github-actions Bot added the bug Something isn't working label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant