Skip to content

Commit

Permalink
Run Excel tests on Spark 3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Dec 5, 2024
1 parent 81458ca commit 1cc7fec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/data/local-fs/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ min_excel: &min_excel
os: ubuntu-latest

max: &max
# Excel pagkage currently supports Spark 3.5.1 max
spark-version: 3.5.1
spark-version: 3.5.3
pydantic-version: 2
python-version: '3.12'
java-version: 20
Expand Down
5 changes: 0 additions & 5 deletions requirements/tests/spark-3.5.1.txt

This file was deleted.

13 changes: 11 additions & 2 deletions tests/fixtures/spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,17 @@ def maven_packages(request):
packages.extend(MongoDB.get_packages(spark_version=str(pyspark_version)))

if "excel" in markers:
# There is no Excel files support for Spark less than 3.2
packages.extend(Excel.get_packages(spark_version=str(pyspark_version)))
# There is no Excel files support for Spark less than 3.2.
# There are package versions only for specific Spark versions,
# see https://github.com/nightscape/spark-excel/issues/902
if pyspark_version.minor == 2:
packages.extend(Excel.get_packages(spark_version="3.2.4"))
elif pyspark_version.minor == 3:
packages.extend(Excel.get_packages(spark_version="3.3.4"))
elif pyspark_version.minor == 4:
packages.extend(Excel.get_packages(spark_version="3.4.3"))
elif pyspark_version.minor == 5:
packages.extend(Excel.get_packages(spark_version="3.5.1"))

return packages

Expand Down

0 comments on commit 1cc7fec

Please sign in to comment.