This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 370b74c5b Fix regression test docker setup for purge (#1768)
370b74c5b is described below
commit 370b74c5b2d6525643b7a3df629cd977ce824281
Author: gh-yzou <[email protected]>
AuthorDate: Mon Jun 2 07:31:29 2025 -0700
Fix regression test docker setup for purge (#1768)
---
regtests/docker-compose.yml | 1 +
regtests/t_pyspark/src/conftest.py | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/regtests/docker-compose.yml b/regtests/docker-compose.yml
index cdb44050d..33d72aacb 100644
--- a/regtests/docker-compose.yml
+++ b/regtests/docker-compose.yml
@@ -34,6 +34,7 @@ services:
POLARIS_BOOTSTRAP_CREDENTIALS: POLARIS,root,secret
quarkus.log.file.enable: "false"
quarkus.otel.sdk.disabled: "true"
+ polaris.features."DROP_WITH_PURGE_ENABLED": "true"
polaris.features."ALLOW_INSECURE_STORAGE_TYPES": "true"
polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES":
"[\"FILE\",\"S3\",\"GCS\",\"AZURE\"]"
polaris.readiness.ignore-severe-issues: "true"
diff --git a/regtests/t_pyspark/src/conftest.py
b/regtests/t_pyspark/src/conftest.py
index 399b87a60..da14b14a7 100644
--- a/regtests/t_pyspark/src/conftest.py
+++ b/regtests/t_pyspark/src/conftest.py
@@ -28,7 +28,7 @@ from polaris.catalog.api.iceberg_catalog_api import
IcebergCatalogAPI
from polaris.catalog.api_client import ApiClient as CatalogApiClient
from polaris.management import Catalog, AwsStorageConfigInfo, ApiClient,
PolarisDefaultApi, Configuration, \
CreateCatalogRequest, GrantCatalogRoleRequest, CatalogRole, ApiException,
AddGrantRequest, CatalogGrant, \
- CatalogPrivilege, CreateCatalogRoleRequest
+ CatalogPrivilege, CreateCatalogRoleRequest, CatalogProperties
@pytest.fixture
@@ -107,10 +107,11 @@ def snowflake_catalog(root_client, catalog_client,
test_bucket, aws_role_arn, aw
allowed_locations=[f"s3://{test_bucket}/{aws_bucket_base_location_prefix}/"],
role_arn=aws_role_arn)
catalog_name = f'snowflake_{str(uuid.uuid4())[-10:]}'
- catalog = Catalog(name=catalog_name, type='INTERNAL', properties={
+ catalog = Catalog(name=catalog_name, type='INTERNAL',
properties=CatalogProperties.from_dict({
"default-base-location":
f"s3://{test_bucket}/{aws_bucket_base_location_prefix}/snowflake_catalog",
- "client.credentials-provider":
"software.amazon.awssdk.auth.credentials.SystemPropertyCredentialsProvider"
- },
+ "client.credentials-provider":
"software.amazon.awssdk.auth.credentials.SystemPropertyCredentialsProvider",
+ "polaris.config.drop-with-purge.enabled": "true"
+ }),
storage_config_info=storage_conf)
catalog.storage_config_info = storage_conf
try: