Skip to content

Commit

Permalink
fix RewriteOptions builder for inputFilesToJoin
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim_konstantinov committed Aug 7, 2024
1 parent 64d3bb2 commit f50666a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,6 @@ public Builder ignoreJoinFilesMetadata(boolean ignoreJoinFilesMetadata) {
public RewriteOptions build() {
Preconditions.checkArgument(inputFiles != null && !inputFiles.isEmpty(), "Input file is required");
Preconditions.checkArgument(outputFile != null, "Output file is required");
Preconditions.checkArgument(
inputFilesToJoin == null || !inputFilesToJoin.isEmpty(),
"Input files to join must be non-empty list or it can be left unset, it can't be an empty list");

if (pruneColumns != null) {
if (maskColumns != null) {
Expand Down Expand Up @@ -501,7 +498,7 @@ public RewriteOptions build() {
return new RewriteOptions(
conf,
inputFiles,
inputFilesToJoin,
(inputFilesToJoin != null ? inputFilesToJoin : new ArrayList<>()),
outputFile,
pruneColumns,
newCodecName,
Expand Down

0 comments on commit f50666a

Please sign in to comment.