Skip to content

Commit

Permalink
update pyspark to 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HonahX committed Jan 25, 2024
1 parent 0f08806 commit 58287d6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 43 deletions.
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ requests-mock = "1.11.0"
moto = { version = "^4.2.13", extras = ["server"] }
typing-extensions = "4.9.0"
pytest-mock = "3.12.0"
pyspark = "3.4.2"
pyspark = "3.5.0"
cython = "3.0.8"

[[tool.mypy.overrides]]
Expand Down
16 changes: 0 additions & 16 deletions tests/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions tests/integration/__init__.py

This file was deleted.

8 changes: 7 additions & 1 deletion tests/integration/test_writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,16 @@ def table_v1_v2_appended_with_null(session_catalog: Catalog, arrow_table_with_nu

@pytest.fixture(scope="session")
def spark() -> SparkSession:
import importlib.metadata
import os

spark_version = ".".join(importlib.metadata.version("pyspark").split(".")[:2])
scala_version = "2.12"
iceberg_version = "1.4.3"

os.environ["PYSPARK_SUBMIT_ARGS"] = (
"--packages org.apache.iceberg:iceberg-spark-runtime-3.4_2.12:1.4.0,org.apache.iceberg:iceberg-aws-bundle:1.4.0 pyspark-shell"
f"--packages org.apache.iceberg:iceberg-spark-runtime-{spark_version}_{scala_version}:{iceberg_version},"
f"org.apache.iceberg:iceberg-aws-bundle:{iceberg_version} pyspark-shell"
)
os.environ["AWS_REGION"] = "us-east-1"
os.environ["AWS_ACCESS_KEY_ID"] = "admin"
Expand Down

0 comments on commit 58287d6

Please sign in to comment.