Skip to content

feat(hive): accept the Java lock-check millisecond properties - #4592

Open
Anurag-S1ngh wants to merge 2 commits into
apache:mainfrom
Anurag-S1ngh:feat/4140-hive-lock-check-ms
Open

Anurag-S1ngh wants to merge 2 commits into
apache:mainfrom
Anurag-S1ngh:feat/4140-hive-lock-check-ms

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown
Contributor

Part of #4140

Rationale for this change

Java configs set iceberg.hive.lock-check-min-wait-ms and iceberg.hive.lock-check-max-wait-ms, while PyIceberg reads the second-based lock-check-min-wait-time and lock-check-max-wait-time. The catalog now accepts the Java keys and converts them to seconds. The native keys keep precedence when both are set.

Are these changes tested?

Added tests for the millisecond keys and for native-key precedence. tests/catalog/test_hive.py passes apart from four kerberos tests that also fail on clean main because the kerberos extra is not installed locally.

Are there any user-facing changes?

Yes. The Java lock-check properties are accepted.

Java configs set iceberg.hive.lock-check-min-wait-ms and max-wait-ms.
Convert them to seconds when the native second-based keys are absent,
so one config works for both clients.
Catalog properties are typed as strings, and passing ints and floats
fails the mypy hook in CI.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant