You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by fo...@apache.org on 2024/04/14 04:49:09 UTC
(iceberg-python) 04/05: fix integration tests
This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch pyiceberg-0.6.x
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
commit 363b23744c2d15c2da59ea438aa41743de9a7c6c
Author: HonahX <ho...@apache.org>
AuthorDate: Sat Apr 13 15:37:12 2024 -0700
fix integration tests
---
tests/integration/test_writes.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/tests/integration/test_writes.py b/tests/integration/test_writes.py
index 873966ca..aaeefff5 100644
--- a/tests/integration/test_writes.py
+++ b/tests/integration/test_writes.py
@@ -131,6 +131,20 @@ def session_catalog() -> Catalog:
)
+@pytest.fixture(scope="session")
+def session_catalog_hive() -> Catalog:
+ return load_catalog(
+ "local",
+ **{
+ "type": "hive",
+ "uri": "http://localhost:9083",
+ "s3.endpoint": "http://localhost:9000",
+ "s3.access-key-id": "admin",
+ "s3.secret-access-key": "password",
+ },
+ )
+
+
@pytest.fixture(scope="session")
def pa_schema() -> pa.Schema:
return pa.schema([
@@ -289,6 +303,13 @@ def spark() -> SparkSession:
.config("spark.sql.catalog.integration.s3.endpoint", "http://localhost:9000")
.config("spark.sql.catalog.integration.s3.path-style-access", "true")
.config("spark.sql.defaultCatalog", "integration")
+ .config("spark.sql.catalog.hive", "org.apache.iceberg.spark.SparkCatalog")
+ .config("spark.sql.catalog.hive.type", "hive")
+ .config("spark.sql.catalog.hive.uri", "http://localhost:9083")
+ .config("spark.sql.catalog.hive.io-impl", "org.apache.iceberg.aws.s3.S3FileIO")
+ .config("spark.sql.catalog.hive.warehouse", "s3://warehouse/hive/")
+ .config("spark.sql.catalog.hive.s3.endpoint", "http://localhost:9000")
+ .config("spark.sql.catalog.hive.s3.path-style-access", "true")
.getOrCreate()
)