-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flesh out the target example and add it to CI.
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
detailedErrors: true | ||
numKeyCols: 4 | ||
# We might have a large number of errors so just show the first 5 | ||
numErrorsToReport: 5 | ||
|
||
|
@@ -10,8 +11,8 @@ email: | |
- [email protected] | ||
|
||
tables: | ||
- db: uk_data | ||
table: adult | ||
- db: gender_paygaps | ||
table: uk | ||
# Columns that taken together uniquely specifies each row (think of groupBy) | ||
keyColumns: | ||
- CompanyNumber | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
source ../env_setup.sh | ||
set -ex | ||
export SPARK_VERSION=${SPARK_VERSION:-3.4.1} | ||
git clone [email protected]:holdenk/data-validator.git | ||
cd data-validator | ||
git checkout upgrade-to-modern-spark | ||
sbt -Dspark=${SPARK_VERSION} clean assembly | ||
export JAR_PATH="$(pwd)/target/scala-2.12/data-validator-assembly-${SPARK_VERSION}_0.15.0.jar" | ||
cd .. | ||
spark-submit --master local $JAR_PATH --config ex.yaml || echo "Failed as expected." |