Skip to content

Commit

Permalink
Set streaming engine option to fix V1 tests (#33100)
Browse files Browse the repository at this point in the history
* set enable_streaming_engine option

* trigger test

* trigger test

* revert test trigger
  • Loading branch information
ahmedabu98 authored Nov 13, 2024
1 parent 0b1b154 commit cb06b1b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ public void testStreamingStorageWriteRead() {
String.format("%s:%s.%s", PROJECT, BIG_QUERY_DATASET_ID, testName.getMethodName());
Map<String, Object> config = ImmutableMap.of("table", table);

if (writePipeline.getOptions().getRunner().getName().contains("DataflowRunner")) {
// Need to manually enable streaming engine for legacy dataflow runner
ExperimentalOptions.addExperiment(
writePipeline.getOptions().as(ExperimentalOptions.class),
GcpOptions.STREAMING_ENGINE_EXPERIMENT);
}

// streaming write
PCollectionRowTuple.of("input", getInput(writePipeline, true))
.apply(Managed.write(Managed.BIGQUERY).withConfig(config));
Expand Down

0 comments on commit cb06b1b

Please sign in to comment.