This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new 00d0962d7 Test: Replace rest-scan-planning-enabled with
scan-planning-mode (#3391)
00d0962d7 is described below
commit 00d0962d7472a21fbcb548dd23b1e0e5a90695d8
Author: Yuya Ebihara <[email protected]>
AuthorDate: Sun May 24 06:52:53 2026 +0900
Test: Replace rest-scan-planning-enabled with scan-planning-mode (#3391)
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
# Rationale for this change
- Follow-up of https://github.com/apache/iceberg-python/pull/3376
There are no other usages of `rest-scan-planning-enabled`.
## Are these changes tested?
Yes
## Are there any user-facing changes?
No
---
tests/catalog/test_scan_planning_models.py | 4 ++--
tests/integration/test_rest_scan_planning_integration.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/catalog/test_scan_planning_models.py
b/tests/catalog/test_scan_planning_models.py
index 567f1444a..f2c80cfb9 100644
--- a/tests/catalog/test_scan_planning_models.py
+++ b/tests/catalog/test_scan_planning_models.py
@@ -48,7 +48,7 @@ def rest_scan_catalog(requests_mock: Mocker) -> RestCatalog:
requests_mock.get(
f"{TEST_URI}v1/config",
json={
- "defaults": {"rest-scan-planning-enabled": "true"},
+ "defaults": {"scan-planning-mode": "server"},
"overrides": {},
"endpoints": [
"POST /v1/{prefix}/namespaces/{namespace}/tables/{table}/plan",
@@ -61,7 +61,7 @@ def rest_scan_catalog(requests_mock: Mocker) -> RestCatalog:
return RestCatalog(
"test",
uri=TEST_URI,
- **{"rest-scan-planning-enabled": "true"},
+ **{"scan-planning-mode": "server"},
)
diff --git a/tests/integration/test_rest_scan_planning_integration.py
b/tests/integration/test_rest_scan_planning_integration.py
index 456dbe41a..e0d4bb352 100644
--- a/tests/integration/test_rest_scan_planning_integration.py
+++ b/tests/integration/test_rest_scan_planning_integration.py
@@ -76,7 +76,7 @@ def scan_catalog() -> Catalog:
"s3.endpoint": "http://localhost:9000",
"s3.access-key-id": "admin",
"s3.secret-access-key": "password",
- "rest-scan-planning-enabled": "true",
+ "scan-planning-mode": "server",
},
)
catalog.create_namespace_if_not_exists("default")