Skip to content

Commit 7055043

Browse files
authored
Merge branch 'googleapis:main' into main
2 parents aa6d9c6 + 9221e18 commit 7055043

File tree

28 files changed

+962
-462
lines changed

28 files changed

+962
-462
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996
16+
digest: sha256:944c07e458ce227ca49a423affedf088e31e2ee70908dd21682238d58f1beb60

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [2.35.0](https://github.com/googleapis/java-bigquerystorage/compare/v2.34.2...v2.35.0) (2023-04-13)
4+
5+
6+
### Features
7+
8+
* Add public api to stream writer to set the maximum wait time ([#2066](https://github.com/googleapis/java-bigquerystorage/issues/2066)) ([1e9a8ca](https://github.com/googleapis/java-bigquerystorage/commit/1e9a8cac19c3748515ebff7990d02fd576c7dd23))
9+
* Add sample about processing permanent writer failure ([#2057](https://github.com/googleapis/java-bigquerystorage/issues/2057)) ([8eda934](https://github.com/googleapis/java-bigquerystorage/commit/8eda9347a90f59ddcf99501f8b71ba17c5f3a143))
10+
* Add schema aware stream writer ([#2048](https://github.com/googleapis/java-bigquerystorage/issues/2048)) ([ad136b9](https://github.com/googleapis/java-bigquerystorage/commit/ad136b9fa25e774a33d02fc3a82a76fb1152b5c5))
11+
12+
13+
### Dependencies
14+
15+
* Update dependency com.google.cloud:google-cloud-bigquery to v2.24.4 ([#2070](https://github.com/googleapis/java-bigquerystorage/issues/2070)) ([ce9e962](https://github.com/googleapis/java-bigquerystorage/commit/ce9e96209cbafd5a4daa981c5e5252272dc9811a))
16+
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.7.0 ([#2077](https://github.com/googleapis/java-bigquerystorage/issues/2077)) ([b5ea788](https://github.com/googleapis/java-bigquerystorage/commit/b5ea788df26122dcdf3c7104658cc8fd35a38f72))
17+
318
## [2.34.2](https://github.com/googleapis/java-bigquerystorage/compare/v2.34.1...v2.34.2) (2023-03-30)
419

520

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,36 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
3434

3535
```
3636

37-
If you are using Maven without BOM, add this to your dependencies:
37+
If you are using Maven without the BOM, add this to your dependencies:
3838

39+
<!-- {x-version-update-start:google-cloud-bigquerystorage:released} -->
3940

4041
```xml
4142
<dependency>
4243
<groupId>com.google.cloud</groupId>
4344
<artifactId>google-cloud-bigquerystorage</artifactId>
44-
<version>2.34.1</version>
45+
<version>2.34.2</version>
4546
</dependency>
4647

4748
```
4849

4950
If you are using Gradle 5.x or later, add this to your dependencies:
5051

5152
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.11.0')
53+
implementation platform('com.google.cloud:libraries-bom:26.12.0')
5354
5455
implementation 'com.google.cloud:google-cloud-bigquerystorage'
5556
```
5657
If you are using Gradle without BOM, add this to your dependencies:
5758

5859
```Groovy
59-
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.34.2'
60+
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.35.0'
6061
```
6162

6263
If you are using SBT, add this to your dependencies:
6364

6465
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.34.2"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.35.0"
6667
```
6768
<!-- {x-version-update-end} -->
6869

@@ -219,15 +220,15 @@ Java is a registered trademark of Oracle and/or its affiliates.
219220
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerystorage/java11.html
220221
[stability-image]: https://img.shields.io/badge/stability-stable-green
221222
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg
222-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.34.2
223+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.35.0
223224
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
224225
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
225226
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
226227
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
227228
[developer-console]: https://console.developers.google.com/
228229
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
229230
[cloud-cli]: https://cloud.google.com/cli
230-
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
231+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
231232
[contributing]: https://github.com/googleapis/java-bigquerystorage/blob/main/CONTRIBUTING.md
232233
[code-of-conduct]: https://github.com/googleapis/java-bigquerystorage/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
233234
[license]: https://github.com/googleapis/java-bigquerystorage/blob/main/LICENSE

google-cloud-bigquerystorage-bom/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-bigquerystorage-bom</artifactId>
6-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
6+
<version>2.35.0</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
77
<packaging>pom</packaging>
88
<parent>
99
<groupId>com.google.cloud</groupId>
@@ -52,37 +52,37 @@
5252
<dependency>
5353
<groupId>com.google.cloud</groupId>
5454
<artifactId>google-cloud-bigquerystorage</artifactId>
55-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
55+
<version>2.35.0</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
5656
</dependency>
5757
<dependency>
5858
<groupId>com.google.api.grpc</groupId>
5959
<artifactId>grpc-google-cloud-bigquerystorage-v1beta1</artifactId>
60-
<version>0.158.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1beta1:current} -->
60+
<version>0.159.0</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1beta1:current} -->
6161
</dependency>
6262
<dependency>
6363
<groupId>com.google.api.grpc</groupId>
6464
<artifactId>grpc-google-cloud-bigquerystorage-v1beta2</artifactId>
65-
<version>0.158.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1beta2:current} -->
65+
<version>0.159.0</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1beta2:current} -->
6666
</dependency>
6767
<dependency>
6868
<groupId>com.google.api.grpc</groupId>
6969
<artifactId>grpc-google-cloud-bigquerystorage-v1</artifactId>
70-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1:current} -->
70+
<version>2.35.0</version><!-- {x-version-update:grpc-google-cloud-bigquerystorage-v1:current} -->
7171
</dependency>
7272
<dependency>
7373
<groupId>com.google.api.grpc</groupId>
7474
<artifactId>proto-google-cloud-bigquerystorage-v1beta1</artifactId>
75-
<version>0.158.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1beta1:current} -->
75+
<version>0.159.0</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1beta1:current} -->
7676
</dependency>
7777
<dependency>
7878
<groupId>com.google.api.grpc</groupId>
7979
<artifactId>proto-google-cloud-bigquerystorage-v1beta2</artifactId>
80-
<version>0.158.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1beta2:current} -->
80+
<version>0.159.0</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1beta2:current} -->
8181
</dependency>
8282
<dependency>
8383
<groupId>com.google.api.grpc</groupId>
8484
<artifactId>proto-google-cloud-bigquerystorage-v1</artifactId>
85-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1:current} -->
85+
<version>2.35.0</version><!-- {x-version-update:proto-google-cloud-bigquerystorage-v1:current} -->
8686
</dependency>
8787
</dependencies>
8888
</dependencyManagement>

google-cloud-bigquerystorage/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-bigquerystorage</artifactId>
6-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
6+
<version>2.35.0</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
77
<packaging>jar</packaging>
88
<name>BigQuery Storage</name>
99
<url>https://github.com/googleapis/java-bigquerystorage</url>
1010
<description>BigQuery Storage</description>
1111
<parent>
1212
<groupId>com.google.cloud</groupId>
1313
<artifactId>google-cloud-bigquerystorage-parent</artifactId>
14-
<version>2.34.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
14+
<version>2.35.0</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
1515
</parent>
1616
<properties>
1717
<site.installationModule>google-cloud-bigquerystorage</site.installationModule>

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ public String getStreamName() {
243243
}
244244

245245
/**
246-
* This exception is thrown from {@link JsonStreamWriter#append()} when the client side Json to
247-
* Proto serializtion fails. It can also be thrown by the server in case rows contains invalid
246+
* This exception is thrown from {@link SchemaAwareStreamWriter#append()} when the client side
247+
* Proto serialization fails. It can also be thrown by the server in case rows contains invalid
248248
* data. The exception contains a Map of indexes of faulty rows and the corresponding error
249249
* message.
250250
*/
@@ -362,16 +362,27 @@ protected InflightBytesLimitExceededException(String writerId, long currentLimit
362362
currentLimit);
363363
}
364364
}
365+
365366
/**
366-
* Input Json data has unknown field to the schema of the JsonStreamWriter. User can either turn
367-
* on IgnoreUnknownFields option on the JsonStreamWriter, or if they don't want the error to be
368-
* ignored, they should recreate the JsonStreamWriter with the updated table schema.
367+
* This class is replaced by a generic one. It will be removed soon. Please use {@link
368+
* DataHasUnknownFieldException}
369369
*/
370-
public static final class JsonDataHasUnknownFieldException extends IllegalArgumentException {
370+
public static final class JsonDataHasUnknownFieldException extends DataHasUnknownFieldException {
371+
protected JsonDataHasUnknownFieldException(String jsonFieldName) {
372+
super(jsonFieldName);
373+
}
374+
}
375+
/**
376+
* Input data object has unknown field to the schema of the SchemaAwareStreamWriter. User can
377+
* either turn on IgnoreUnknownFields option on the SchemaAwareStreamWriter, or if they don't want
378+
* the error to be ignored, they should recreate the SchemaAwareStreamWriter with the updated
379+
* table schema.
380+
*/
381+
public static class DataHasUnknownFieldException extends IllegalArgumentException {
371382
private final String jsonFieldName;
372383

373-
protected JsonDataHasUnknownFieldException(String jsonFieldName) {
374-
super(String.format("JSONObject has fields unknown to BigQuery: %s.", jsonFieldName));
384+
public DataHasUnknownFieldException(String jsonFieldName) {
385+
super(String.format("The source object has fields unknown to BigQuery: %s.", jsonFieldName));
375386
this.jsonFieldName = jsonFieldName;
376387
}
377388

0 commit comments

Comments
 (0)