|
| 1 | +# Copyright 2021 Google LLC |
| 2 | + |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | + |
| 7 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
1 | 14 | """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.
|
2 | 15 | The job uploads a subset of the data to BigQuery.
|
3 | 16 | Then, data is pulled from BigQuery and checks are made to see if the data is dirty.
|
|
54 | 67 | "pyspark_job": {
|
55 | 68 | "main_python_file_uri": f"gs://{BUCKET_NAME}/{BUCKET_BLOB}",
|
56 | 69 | "args": [BUCKET_NAME, BQ_DATASET, "--test"],
|
57 |
| - "jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"], |
| 70 | + # Temporarily pin jar version due to breaking release |
| 71 | + # "jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-latest_2.12.jar"], |
| 72 | + "jar_file_uris": ["gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.18.1.jar"], |
58 | 73 | },
|
59 | 74 | }
|
60 | 75 |
|
|
0 commit comments