Skip to content

Commit 7ec9f6f

Browse files
authored
feat: support Deequ 2.0.0 (Spark 3.1) and 2.0.1 (Spark 3.2) (#100)
* adding support for Deequ 2.0/Spark 3.2 * adding support for deequ 2.0.1, but keeping support to previous versions * keep pyspark as optional dependency * black formatting * testing on github workflow * try and fix workflow trigger * install poetry * update lock * downgrading python to 3.7 * adding java installation * installing different python versions for different pyspark versions * temporarily removing spark 2.* from tests * set SPARK_VERSION for running tests * testing spark 2.2 and 2.4 * downgrading Java version for pyspark 2.x * remove 2.2 from tests * naming steps * drop support for Spark 2.2 * using pyspark api to retrive spark version * get spark version from subprocess * change _get_spark_version strategy to avoid deadlocks * debugging spark version * fix parsing of spark stdout * better deequ coord configuration * improve suggestions unit tests * improve tests * support spark 3.1 * fix pyspark version on github workflow * better check of deequ v2 * fix missing argument * update numpy and refresh poetry.lock * improve unsupported spark version error message * handling deequ V1 as an exception not a rule * update matrix strategy to not fail-fast * dropping pyspark 2.4 from CI
1 parent 9bcc6bc commit 7ec9f6f

File tree

10 files changed

+633
-599
lines changed

10 files changed

+633
-599
lines changed

.github/workflows/base.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
push:
3+
branches:
4+
- "*"
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
PYSPARK_VERSION: ["3.0", "3.1.3", "3.2"]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/setup-python@v2
18+
name: Install Python 3.8
19+
with:
20+
python-version: 3.8
21+
22+
- uses: actions/setup-java@v1
23+
name: Setup Java 11
24+
if: startsWith(matrix.PYSPARK_VERSION, '3')
25+
with:
26+
java-version: '11'
27+
28+
- name: Running tests with pyspark==${{matrix.PYSPARK_VERSION}}
29+
env:
30+
SPARK_VERSION: ${{matrix.PYSPARK_VERSION}}
31+
run: |
32+
pip install --upgrade pip
33+
pip install poetry
34+
poetry install
35+
poetry add pyspark==$SPARK_VERSION
36+
poetry run python -m pytest -s tests

0 commit comments

Comments
 (0)