Skip to content

workaround for pyspark connector breaking change #5420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion data-science-onramp/data-cleaning/clean_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
"pyspark_job": {
"main_python_file_uri": f"gs://{BUCKET_NAME}/{BUCKET_BLOB}",
"args": [BUCKET_NAME, BQ_TABLE, "--dry-run"],
"jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"],
# Temporarily pin jar version due to breaking release
# "jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"],
"jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.18.1.jar"],
},
}

Expand Down
17 changes: 16 additions & 1 deletion data-science-onramp/data-ingestion/setup_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Copyright 2021 Google LLC

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# https://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Test file for the setup job in the Data Science Onramp sample application Creates a test Dataproc cluster and runs the job with a --test flag.
The job uploads a subset of the data to BigQuery.
Then, data is pulled from BigQuery and checks are made to see if the data is dirty.
Expand Down Expand Up @@ -54,7 +67,9 @@
"pyspark_job": {
"main_python_file_uri": f"gs://{BUCKET_NAME}/{BUCKET_BLOB}",
"args": [BUCKET_NAME, BQ_DATASET, "--test"],
"jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"],
# Temporarily pin jar version due to breaking release
# "jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"],
"jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.18.1.jar"],
},
}

Expand Down