Skip to content

Commit fe48b2c

Browse files
committed
fixes
1 parent 8de323e commit fe48b2c

4 files changed

Lines changed: 1 addition & 15 deletions

File tree

sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiDynamicDestinationsTableRow.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ byte[] getSchemaHash() {
236236
return getSchemaHash.get();
237237
}
238238

239-
@Override
240-
public byte[] getSchemaHash() {
241-
return getSchemaHash.get();
242-
}
243-
244239
@Override
245240
public DescriptorProtos.DescriptorProto getDescriptor(boolean includeCdcColumns)
246241
throws Exception {

sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/UpgradeTableSchema.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ private static List<TableFieldSchema> getIncrementalSchemaHelper(
130130
List<TableFieldSchema> fields = Lists.newArrayList();
131131

132132
Set<String> fieldsToRelax = relaxedFields.getOrDefault(prefix, Collections.emptySet());
133+
// Add existing fields in the same order.
133134
for (TableFieldSchema fieldSchema : tableFields) {
134135
String fieldName = fieldSchema.getName().toLowerCase();
135136
TableFieldSchema.Builder clonedField = null;

sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOWriteTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3476,7 +3476,6 @@ public void testStreamingInsertsExtendedErrorRetrieval() throws Exception {
34763476
@Test
34773477
public void testStorageApiErrorsWriteProto() throws Exception {
34783478
assumeTrue(useStorageApi);
3479-
assumeTrue(useStorageApiApproximate); // REMOVE
34803479
final Method method =
34813480
useStorageApiApproximate ? Method.STORAGE_API_AT_LEAST_ONCE : Method.STORAGE_WRITE_API;
34823481

sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiDataTriggeredSchemaUpdateIT.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,6 @@ private void runTest(Write.Method method) throws Exception {
283283

284284
p.run().waitUntilFinish();
285285

286-
List<TableRow> response =
287-
BQ_CLIENT.queryUnflattened(
288-
String.format("SELECT * FROM [%s] ORDER BY number", tableSpec),
289-
PROJECT,
290-
true,
291-
false,
292-
bigQueryLocation);
293-
System.err.println("FULL RESULT " + response);
294-
295286
// Verification
296287
verifyTableSchemaUpdated(tableSpec, evolvedSchema);
297288
List<VerificationInfo> verifications =

0 commit comments

Comments
 (0)