You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "liferoad (via GitHub)" <gi...@apache.org> on 2025/10/20 15:17:53 UTC
Re: [PR] Fix BigQueryIO File load validate runtime value provider [beam]
liferoad commented on code in PR #36564:
URL: https://github.com/apache/beam/pull/36564#discussion_r2445328862
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BatchLoads.java:
##########
@@ -285,14 +285,17 @@ public void validate(@Nullable PipelineOptions maybeOptions) {
PipelineOptions options = Preconditions.checkArgumentNotNull(maybeOptions);
// We will use a BigQuery load job -- validate the temp location.
String tempLocation;
- if (customGcsTempLocation == null || customGcsTempLocation.get() == null) {
+ if (customGcsTempLocation == null) {
tempLocation = options.getTempLocation();
} else {
if (!customGcsTempLocation.isAccessible()) {
// Can't perform verification in this case.
return;
+ } else if (Strings.isNullOrEmpty(customGcsTempLocation.get())) {
Review Comment:
@tarun-google we should add one test later to capture this case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org