Repository navigation
Conversation
|
@kevinjqliu when you have a chance, could you please take a look at this pr and let me know if any update is needed? |
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
c334954 to
cbb1a9f
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The change is covered by regression tests and has no blocking issues.
Pull request overview
Updates BigQuery namespace property loading to return flat properties consistent with the catalog contract.
Changes:
- Returns namespace parameters as a flat map.
- Adds tests for populated and unset parameters.
File summaries
| File | Description |
|---|---|
tests/catalog/test_bigquery_metastore.py |
Adds regression coverage for namespace properties. |
pyiceberg/catalog/bigquery_metastore.py |
Returns flat namespace properties. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
Return the stored parameters rather than the nested BigQuery API object. Expose the dataset's default storage URI as the standard location property, matching Java BigQueryMetastoreCatalog, and retain empty-option handling. Cover the create/load round trip, authoritative location precedence, and missing parameters or dataset options without making BigQuery requests. Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
cbb1a9f to
62dd90a
Compare
Rationale for this change
BigQueryMetastoreCatalog.load_namespace_propertiesreturns BigQuery's nestedAPI representation instead of the flat namespace-properties map expected by
the catalog interface.
Return a copy of the stored parameters and expose the dataset's default storage
URI under the standard
locationkey. As in Java'sBigQueryMetastoreCatalog.toMetadata, the dataset URI takes precedence over astale location parameter. Missing parameters and dataset options are handled
without returning a nested map or
None.Are these changes tested?
make lintpasses, including mypy, Ruff, codespell, and lockfile validation.make testpasses the full unit suite.location precedence, missing parameters, empty locations, and missing options.
client pattern. No BigQuery service calls were made.
Are there any user-facing changes?
Yes. Namespace properties are returned directly, with the storage URI under
location, rather than insideparametersordefaultStorageLocationUri.This update was prepared with AI assistance through OpenCode and independently
source-reviewed by Opus 5.5 and Gemini 4 Neon. Those reviews are not maintainer
approvals.