Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.16.0')
implementation platform('com.google.cloud:libraries-bom:26.18.0')

implementation 'com.google.cloud:google-cloud-bigquerystorage'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.37.2'
implementation 'com.google.cloud:google-cloud-bigquerystorage:2.39.1'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.37.2"
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "2.39.1"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -220,7 +220,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquerystorage/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.37.2
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/2.39.1
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
12 changes: 12 additions & 0 deletions google-cloud-bigquerystorage/clirr-ignored-differences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,17 @@
<className>com/google/cloud/bigquery/storage/v1/JsonStreamWriter</className>
<method>boolean isDone()</method>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/bigquery/storage/v1/ToProtoConverter</className>
<method>com.google.protobuf.DynamicMessage convertToProtoMessage(com.google.protobuf.Descriptors$Descriptor, com.google.cloud.bigquery.storage.v1.TableSchema, java.lang.Object, boolean)</method>
<to>java.util.List</to>
</difference>
<difference>
<differenceType>7005</differenceType>
<className>com/google/cloud/bigquery/storage/v1/ToProtoConverter</className>
<method>com.google.protobuf.DynamicMessage convertToProtoMessage(com.google.protobuf.Descriptors$Descriptor, com.google.cloud.bigquery.storage.v1.TableSchema, java.lang.Object, boolean)</method>
<to>com.google.protobuf.DynamicMessage convertToProtoMessage(com.google.protobuf.Descriptors$Descriptor, com.google.cloud.bigquery.storage.v1.TableSchema, java.lang.Iterable, boolean)</to>
</difference>
</differences>

Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,29 @@ public AppendSerializationError(
}
}

/** This exception is thrown from proto converter to wrap the row index to error mapping. */
static class RowIndexToErrorException extends IllegalArgumentException {
Map<Integer, String> rowIndexToErrorMessage;

boolean hasDataUnknownError;
Comment thread
GaoleMeng marked this conversation as resolved.

public RowIndexToErrorException(
Map<Integer, String> rowIndexToErrorMessage, boolean hasDataUnknownError) {
this.rowIndexToErrorMessage = rowIndexToErrorMessage;
this.hasDataUnknownError = hasDataUnknownError;
}

// This message should not be exposed to the user directly.
// Please examine individual row's error through `rowIndexToErrorMessage`.
public String getMessage() {
Comment thread
GaoleMeng marked this conversation as resolved.
return "The map of row index to error message is " + rowIndexToErrorMessage.toString();
}

public boolean hasDataUnknownError() {
return hasDataUnknownError;
}
}

/** This exception is used internally to handle field level parsing errors. */
public static class FieldParseError extends IllegalArgumentException {
private final String fieldName;
Expand Down
Loading