Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
Expand Down Expand Up @@ -67,6 +69,13 @@ public boolean failOnJobFileWriteFailure() {
public static TemplatingDataflowPipelineRunner fromOptions(PipelineOptions options) {
DataflowPipelineDebugOptions dataflowOptions =
PipelineOptionsValidator.validate(DataflowPipelineDebugOptions.class, options);
List<String> experiments = dataflowOptions.getExperiments();
if (experiments == null) {
experiments = new ArrayList<>();
dataflowOptions.setExperiments(experiments);
}
experiments.add("enable_custom_bigquery_source");
experiments.add("enable_custom_bigquery_sink");
DataflowPipelineRunner dataflowPipelineRunner =
DataflowPipelineRunner.fromOptions(dataflowOptions);
checkArgument(!Strings.isNullOrEmpty(dataflowOptions.getDataflowJobFile()),
Expand Down