Skip to content

Commit

Permalink
Formatted to fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanks committed Dec 11, 2024
1 parent ad05b42 commit 6265196
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public static final class Config extends AbstractBigQueryActionConfig {
@Name(WRITE_PREFERENCE)
@Nullable
@Macro
@Description("Specifies whether a job should overwrite or append the existing destination table if it already exists.")
@Description("Specifies if a job should overwrite or append the existing destination table if it already exists.")
private String writePreference;

private Config(@Nullable String project, @Nullable String serviceAccountType, @Nullable String serviceFilePath,
Expand Down Expand Up @@ -571,7 +571,7 @@ void validateWritePreference(FailureCollector failureCollector, String writePref
Set<String> validPreferences = ImmutableSet.of("WRITE_EMPTY", "WRITE_APPEND", "WRITE_TRUNCATE");
if (!validPreferences.contains(writePreference)) {
failureCollector.addFailure(
String.format( "Invalid write preference '%s'. Allowed values are 'WRITE_EMPTY', "
String.format("Invalid write preference '%s'. Allowed values are 'WRITE_EMPTY', "
+ "'WRITE_APPEND', or 'WRITE_TRUNCATE'.", writePreference),
"Please provide a valid write preference.")
.withConfigProperty(WRITE_PREFERENCE);
Expand Down

0 comments on commit 6265196

Please sign in to comment.