Skip to content

Commit 552b7d5

Browse files
committed
Release 0.42.0.
1 parent 2cea89c commit 552b7d5

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Notes
22

3-
## Next
3+
## 0.42.0 - 2025-02-06
44
* PR #1333: Initial implementation of a BigQuery backed Spark Catalog
55
* PR #1335: Adding indirect write GCS cleanup logs
66
* BigQuery API has been upgraded to version 2.47.0

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ The latest version of the connector is publicly available in the following links
5757

5858
| version | Link |
5959
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
60-
| Spark 3.5 | `gs://spark-lib/bigquery/spark-3.5-bigquery-0.41.1.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.5-bigquery-0.41.1.jar)) |
61-
| Spark 3.4 | `gs://spark-lib/bigquery/spark-3.4-bigquery-0.41.1.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.4-bigquery-0.41.1.jar)) |
62-
| Spark 3.3 | `gs://spark-lib/bigquery/spark-3.3-bigquery-0.41.1.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.3-bigquery-0.41.1.jar)) |
63-
| Spark 3.2 | `gs://spark-lib/bigquery/spark-3.2-bigquery-0.41.1.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.2-bigquery-0.41.1.jar)) |
64-
| Spark 3.1 | `gs://spark-lib/bigquery/spark-3.1-bigquery-0.41.1.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.1-bigquery-0.41.1.jar)) |
60+
| Spark 3.5 | `gs://spark-lib/bigquery/spark-3.5-bigquery-0.42.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.5-bigquery-0.42.0.jar)) |
61+
| Spark 3.4 | `gs://spark-lib/bigquery/spark-3.4-bigquery-0.42.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.4-bigquery-0.42.0.jar)) |
62+
| Spark 3.3 | `gs://spark-lib/bigquery/spark-3.3-bigquery-0.42.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.3-bigquery-0.42.0.jar)) |
63+
| Spark 3.2 | `gs://spark-lib/bigquery/spark-3.2-bigquery-0.42.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.2-bigquery-0.42.0.jar)) |
64+
| Spark 3.1 | `gs://spark-lib/bigquery/spark-3.1-bigquery-0.42.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-3.1-bigquery-0.42.0.jar)) |
6565
| Spark 2.4 | `gs://spark-lib/bigquery/spark-2.4-bigquery-0.37.0.jar`([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-2.4-bigquery-0.37.0.jar)) |
66-
| Scala 2.13 | `gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.13-0.41.1.jar` ([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-bigquery-with-dependencies_2.13-0.41.1.jar)) |
67-
| Scala 2.12 | `gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.41.1.jar` ([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.41.1.jar)) |
66+
| Scala 2.13 | `gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.13-0.42.0.jar` ([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-bigquery-with-dependencies_2.13-0.42.0.jar)) |
67+
| Scala 2.12 | `gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.42.0.jar` ([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.42.0.jar)) |
6868
| Scala 2.11 | `gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.11-0.29.0.jar` ([HTTP link](https://storage.googleapis.com/spark-lib/bigquery/spark-bigquery-with-dependencies_2.11-0.29.0.jar)) |
6969

7070
The first six versions are Java based connectors targeting Spark 2.4/3.1/3.2/3.3/3.4/3.5 of all Scala versions built on the new
@@ -107,14 +107,14 @@ repository. It can be used using the `--packages` option or the
107107

108108
| version | Connector Artifact |
109109
|------------|------------------------------------------------------------------------------------|
110-
| Spark 3.5 | `com.google.cloud.spark:spark-3.5-bigquery:0.41.1` |
111-
| Spark 3.4 | `com.google.cloud.spark:spark-3.4-bigquery:0.41.1` |
112-
| Spark 3.3 | `com.google.cloud.spark:spark-3.3-bigquery:0.41.1` |
113-
| Spark 3.2 | `com.google.cloud.spark:spark-3.2-bigquery:0.41.1` |
114-
| Spark 3.1 | `com.google.cloud.spark:spark-3.1-bigquery:0.41.1` |
110+
| Spark 3.5 | `com.google.cloud.spark:spark-3.5-bigquery:0.42.0` |
111+
| Spark 3.4 | `com.google.cloud.spark:spark-3.4-bigquery:0.42.0` |
112+
| Spark 3.3 | `com.google.cloud.spark:spark-3.3-bigquery:0.42.0` |
113+
| Spark 3.2 | `com.google.cloud.spark:spark-3.2-bigquery:0.42.0` |
114+
| Spark 3.1 | `com.google.cloud.spark:spark-3.1-bigquery:0.42.0` |
115115
| Spark 2.4 | `com.google.cloud.spark:spark-2.4-bigquery:0.37.0` |
116-
| Scala 2.13 | `com.google.cloud.spark:spark-bigquery-with-dependencies_2.13:0.41.1` |
117-
| Scala 2.12 | `com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.41.1` |
116+
| Scala 2.13 | `com.google.cloud.spark:spark-bigquery-with-dependencies_2.13:0.42.0` |
117+
| Scala 2.12 | `com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.42.0` |
118118
| Scala 2.11 | `com.google.cloud.spark:spark-bigquery-with-dependencies_2.11:0.29.0` |
119119

120120
### Specifying the Spark BigQuery connector version in a Dataproc cluster
@@ -124,8 +124,8 @@ Using the standard `--jars` or `--packages` (or alternatively, the `spark.jars`/
124124

125125
To use another version than the built-in one, please do one of the following:
126126

127-
* For Dataproc clusters, using image 2.1 and above, add the following flag on cluster creation to upgrade the version `--metadata SPARK_BQ_CONNECTOR_VERSION=0.41.1`, or `--metadata SPARK_BQ_CONNECTOR_URL=gs://spark-lib/bigquery/spark-3.3-bigquery-0.41.1.jar` to create the cluster with a different jar. The URL can point to any valid connector JAR for the cluster's Spark version.
128-
* For Dataproc serverless batches, add the following property on batch creation to upgrade the version: `--properties dataproc.sparkBqConnector.version=0.41.1`, or `--properties dataproc.sparkBqConnector.uri=gs://spark-lib/bigquery/spark-3.3-bigquery-0.41.1.jar` to create the batch with a different jar. The URL can point to any valid connector JAR for the runtime's Spark version.
127+
* For Dataproc clusters, using image 2.1 and above, add the following flag on cluster creation to upgrade the version `--metadata SPARK_BQ_CONNECTOR_VERSION=0.42.0`, or `--metadata SPARK_BQ_CONNECTOR_URL=gs://spark-lib/bigquery/spark-3.3-bigquery-0.42.0.jar` to create the cluster with a different jar. The URL can point to any valid connector JAR for the cluster's Spark version.
128+
* For Dataproc serverless batches, add the following property on batch creation to upgrade the version: `--properties dataproc.sparkBqConnector.version=0.42.0`, or `--properties dataproc.sparkBqConnector.uri=gs://spark-lib/bigquery/spark-3.3-bigquery-0.42.0.jar` to create the batch with a different jar. The URL can point to any valid connector JAR for the runtime's Spark version.
129129

130130
## Hello World Example
131131

@@ -135,7 +135,7 @@ You can run a simple PySpark wordcount against the API without compilation by ru
135135

136136
```
137137
gcloud dataproc jobs submit pyspark --cluster "$MY_CLUSTER" \
138-
--jars gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.41.1.jar \
138+
--jars gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.42.0.jar \
139139
examples/python/shakespeare.py
140140
```
141141

@@ -1200,7 +1200,7 @@ using the following code:
12001200
```python
12011201
from pyspark.sql import SparkSession
12021202
spark = SparkSession.builder \
1203-
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.41.1") \
1203+
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.42.0") \
12041204
.getOrCreate()
12051205
df = spark.read.format("bigquery") \
12061206
.load("dataset.table")
@@ -1209,15 +1209,15 @@ df = spark.read.format("bigquery") \
12091209
**Scala:**
12101210
```scala
12111211
val spark = SparkSession.builder
1212-
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.41.1")
1212+
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.42.0")
12131213
.getOrCreate()
12141214
val df = spark.read.format("bigquery")
12151215
.load("dataset.table")
12161216
```
12171217

12181218
In case Spark cluster is using Scala 2.12 (it's optional for Spark 2.4.x,
12191219
mandatory in 3.0.x), then the relevant package is
1220-
com.google.cloud.spark:spark-bigquery-with-dependencies_**2.12**:0.41.1. In
1220+
com.google.cloud.spark:spark-bigquery-with-dependencies_**2.12**:0.42.0. In
12211221
order to know which Scala version is used, please run the following code:
12221222

12231223
**Python:**
@@ -1241,14 +1241,14 @@ To include the connector in your project:
12411241
<dependency>
12421242
<groupId>com.google.cloud.spark</groupId>
12431243
<artifactId>spark-bigquery-with-dependencies_${scala.version}</artifactId>
1244-
<version>0.41.1</version>
1244+
<version>0.42.0</version>
12451245
</dependency>
12461246
```
12471247

12481248
### SBT
12491249

12501250
```sbt
1251-
libraryDependencies += "com.google.cloud.spark" %% "spark-bigquery-with-dependencies" % "0.41.1"
1251+
libraryDependencies += "com.google.cloud.spark" %% "spark-bigquery-with-dependencies" % "0.42.0"
12521252
```
12531253

12541254
### Connector metrics and how to view them
@@ -1293,7 +1293,7 @@ word-break:break-word
12931293
</table>
12941294

12951295

1296-
**Note:** To use the metrics in the Spark UI page, you need to make sure the `spark-bigquery-metrics-0.41.1.jar` is the class path before starting the history-server and the connector version is `spark-3.2` or above.
1296+
**Note:** To use the metrics in the Spark UI page, you need to make sure the `spark-bigquery-metrics-0.42.0.jar` is the class path before starting the history-server and the connector version is `spark-3.2` or above.
12971297

12981298
## FAQ
12991299

0 commit comments

Comments
 (0)