Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 340ced6

Browse files
chore: generate libraries at Tue Dec 9 22:06:27 UTC 2025
1 parent df18b2b commit 340ced6

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ static FieldDescriptorProto convertBQTableFieldToProtoField(
222222
break;
223223
case 6:
224224
case 0:
225-
// If the timestampPrecision value coems back as a null result from the server, a default value
225+
// If the timestampPrecision value coems back as a null result from the server, a
226+
// default value
226227
// of 0L is set. Map this value as default precision as 6 (microsecond).
227-
fieldDescriptor.setType((FieldDescriptorProto.Type) FieldDescriptorProto.Type.TYPE_INT64);
228+
fieldDescriptor.setType(
229+
(FieldDescriptorProto.Type) FieldDescriptorProto.Type.TYPE_INT64);
228230
break;
229231
default:
230232
// This should never happen as it's an invalid value from server

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,9 +1046,7 @@ static Instant fromEpochMicros(long micros) {
10461046
return Instant.ofEpochSecond(seconds, nanos);
10471047
}
10481048

1049-
/**
1050-
* Best effort to try and convert a timestamp to an ISO8601 string
1051-
*/
1049+
/** Best effort to try and convert a timestamp to an ISO8601 string */
10521050
@VisibleForTesting
10531051
String getTimestampAsString(Object val) {
10541052
if (val instanceof String) {

google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BQTableSchemaToProtoDescriptorTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,14 +694,22 @@ public void timestampField_picosecondPrecision_invalid() throws Exception {
694694
.setTimestampPrecision(Int64Value.newBuilder().setValue(13).build())
695695
.setMode(TableFieldSchema.Mode.NULLABLE)
696696
.build();
697-
assertThrows(IllegalStateException.class, () -> BQTableSchemaToProtoDescriptor.convertBQTableFieldToProtoField(timestampField, 0, null));
697+
assertThrows(
698+
IllegalStateException.class,
699+
() ->
700+
BQTableSchemaToProtoDescriptor.convertBQTableFieldToProtoField(
701+
timestampField, 0, null));
698702

699703
TableFieldSchema timestampField1 =
700704
TableFieldSchema.newBuilder()
701705
.setType(TableFieldSchema.Type.TIMESTAMP)
702706
.setTimestampPrecision(Int64Value.newBuilder().setValue(7).build())
703707
.setMode(TableFieldSchema.Mode.NULLABLE)
704708
.build();
705-
assertThrows(IllegalStateException.class, () -> BQTableSchemaToProtoDescriptor.convertBQTableFieldToProtoField(timestampField1, 0, null));
709+
assertThrows(
710+
IllegalStateException.class,
711+
() ->
712+
BQTableSchemaToProtoDescriptor.convertBQTableFieldToProtoField(
713+
timestampField1, 0, null));
706714
}
707715
}

0 commit comments

Comments
 (0)