Skip to content

Commit

Permalink
Adjust asserts for Spark 3.4.0 snapshot (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Sep 12, 2022
1 parent da2a446 commit bceea91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
distribution: 'zulu'

- name: Build
run: mvn --batch-mode --update-snapshots compile test-compile package -DskipTests -Dmaven.test.skip=true
run: |
mvn --batch-mode --update-snapshots clean compile test-compile
mvn --batch-mode package -DskipTests -Dmaven.test.skip=true
- name: Upload Binaries
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions src/test/scala/uk/co/gresearch/spark/HistogramSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class HistogramSuite extends AnyFunSuite with SparkTestSession {
assert(
exception.getMessage.startsWith("cannot resolve '`does-not-exist`' given input columns: [id, title, value]") ||
exception.getMessage.startsWith("Column '`does-not-exist`' does not exist. Did you mean one of the following? [title, id, value]") ||
exception.getMessage.startsWith("[UNRESOLVED_COLUMN] A column or function parameter with name `does-not-exist` cannot be resolved. Did you mean one of the following? [`title`, `id`, `value`]")
exception.getMessage.startsWith("[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `does-not-exist` cannot be resolved. Did you mean one of the following? [`title`, `id`, `value`]")
)
}

Expand All @@ -194,8 +194,8 @@ class HistogramSuite extends AnyFunSuite with SparkTestSession {
}
assert(
exception.getMessage.startsWith("cannot resolve '`does-not-exist`' given input columns: [") ||
exception.getMessage.startsWith("Column '`does-not-exist`' does not exist. Did you mean one of the following? [") ||
exception.getMessage.startsWith("[UNRESOLVED_COLUMN] A column or function parameter with name `does-not-exist` cannot be resolved. Did you mean one of the following? [")
exception.getMessage.startsWith("Column '`does-not-exist`' does not exist. Did you mean one of the following? [title, id, value, ≤-100, ≤-200, >200, ≤0, ≤100, ≤200]") ||
exception.getMessage.startsWith("[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `does-not-exist` cannot be resolved. Did you mean one of the following? [`title`, `id`, `value`, `≤-100`, `≤-200`]")
)
}

Expand Down

0 comments on commit bceea91

Please sign in to comment.