AllyNav opened a new pull request, #4608: URL: https://github.com/apache/iceberg-python/pull/4608
Part of #4140 # Rationale for this change Java configs set `jdbc.init-catalog-tables` and `jdbc.schema-version` (with values such as `V0` / `V1`) for `JdbcCatalog`, while `SqlCatalog` only read `init_catalog_tables` and lowercase `schema_version`. `SqlCatalog._init_catalog` now accepts both the existing Python keys and the Java `jdbc.*` keys via `get_first_property_value`, keeping `init_catalog_tables` and `schema_version` as higher precedence so existing Python configurations continue working unchanged, and normalizes `schema_version` case so `V0`/`V1` and `v0`/`v1` both work. ## Are these changes tested? Added unit tests in `tests/catalog/test_sql.py` covering: - `jdbc.init-catalog-tables` (`false` / `true`) and precedence when `init_catalog_tables` is also set. - `jdbc.schema-version` (`V1` migration from `v0`, invalid value error) and precedence when `schema_version` is also set. - Verified with `pytest tests/catalog/test_sql.py` (29 passed) and `prek run -a` (all pre-commit hooks passed). ## Are there any user-facing changes? Yes. `SqlCatalog` accepts `jdbc.init-catalog-tables` and `jdbc.schema-version` as fallbacks for `init_catalog_tables` and `schema_version`. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
