You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptor.java
+4-3
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,9 @@
28
28
importjava.util.List;
29
29
30
30
/**
31
-
* Converts a BQ table schema to protobuf descriptor. The mapping between field types and field
32
-
* modes are shown in the ImmutableMaps below.
31
+
* Converts a BQ table schema to protobuf descriptor. All field names will be converted to lowercase
32
+
* when constructing the protobuf descriptor. The mapping between field types and field modes are
Copy file name to clipboardexpand all lines: google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/BQTableSchemaToProtoDescriptorTest.java
+82-2
Original file line number
Diff line number
Diff line change
@@ -171,15 +171,15 @@ public void testStructComplex() throws Exception {
171
171
.setType(Table.TableFieldSchema.Type.STRUCT)
172
172
.setMode(Table.TableFieldSchema.Mode.REQUIRED)
173
173
.addFields(0, test_int)
174
-
.setName("complexLvl2")
174
+
.setName("complex_lvl2")
175
175
.build();
176
176
finalTable.TableFieldSchemaComplexLvl1 =
177
177
Table.TableFieldSchema.newBuilder()
178
178
.setType(Table.TableFieldSchema.Type.STRUCT)
179
179
.setMode(Table.TableFieldSchema.Mode.REQUIRED)
180
180
.addFields(0, test_int)
181
181
.addFields(1, ComplexLvl2)
182
-
.setName("complexLvl1")
182
+
.setName("complex_lvl1")
183
183
.build();
184
184
finalTable.TableSchematableSchema =
185
185
Table.TableSchema.newBuilder()
@@ -197,6 +197,86 @@ public void testStructComplex() throws Exception {
0 commit comments