Skip to content

Commit

Permalink
Supplement defensive copying in HiveTableHandle constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Nov 25, 2021
1 parent 83d7d12 commit d66b0f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ public HiveTableHandle(
this.enforcedConstraint = requireNonNull(enforcedConstraint, "enforcedConstraint is null");
this.bucketHandle = requireNonNull(bucketHandle, "bucketHandle is null");
this.bucketFilter = requireNonNull(bucketFilter, "bucketFilter is null");
this.analyzePartitionValues = requireNonNull(analyzePartitionValues, "analyzePartitionValues is null");
this.analyzePartitionValues = requireNonNull(analyzePartitionValues, "analyzePartitionValues is null").map(ImmutableList::copyOf);
this.analyzeColumnNames = requireNonNull(analyzeColumnNames, "analyzeColumnNames is null").map(ImmutableSet::copyOf);
this.constraintColumns = requireNonNull(constraintColumns, "constraintColumns is null");
this.projectedColumns = requireNonNull(projectedColumns, "projectedColumns is null");
this.constraintColumns = requireNonNull(constraintColumns, "constraintColumns is null").map(ImmutableSet::copyOf);
this.projectedColumns = requireNonNull(projectedColumns, "projectedColumns is null").map(ImmutableSet::copyOf);
this.transaction = requireNonNull(transaction, "transaction is null");
this.recordScannedFiles = recordScannedFiles;
this.maxScannedFileSize = requireNonNull(maxSplitFileSize, "maxSplitFileSize is null");
Expand Down

0 comments on commit d66b0f9

Please sign in to comment.