Skip to content

Commit

Permalink
Core: Remove unused sourceTransform in private method (#9379)
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh-jahagirdar authored Dec 25, 2023
1 parent 197b61e commit cbb50bf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ public BaseUpdatePartitionSpec addField(Term term) {
return addField(null, term);
}

private BaseUpdatePartitionSpec rewriteDeleteAndAddField(
PartitionField existing, String name, Pair<Integer, Transform<?, ?>> sourceTransform) {
private BaseUpdatePartitionSpec rewriteDeleteAndAddField(PartitionField existing, String name) {
deletes.remove(existing.fieldId());
if (name == null || existing.name().equals(name)) {
return this;
Expand All @@ -180,7 +179,7 @@ public BaseUpdatePartitionSpec addField(String name, Term term) {
if (existing != null
&& deletes.contains(existing.fieldId())
&& existing.transform().equals(sourceTransform.second())) {
return rewriteDeleteAndAddField(existing, name, sourceTransform);
return rewriteDeleteAndAddField(existing, name);
}

Preconditions.checkArgument(
Expand Down

0 comments on commit cbb50bf

Please sign in to comment.