Skip to content

Commit

Permalink
[hotfix][table] Fix typo for method name in FieldReferenceLookup.
Browse files Browse the repository at this point in the history
This closes apache#8393
  • Loading branch information
sunjincheng121 committed May 10, 2019
1 parent 478956c commit 2ffa618
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Optional<FieldReferenceExpression> lookupField(String name) {
} else if (matchingFields.size() == 0) {
return Optional.empty();
} else {
throw failAmbigousColumn(name);
throw failAmbiuguousColumn(name);
}
}

Expand Down Expand Up @@ -97,14 +97,14 @@ private static Map<String, FieldReferenceExpression> prepareFieldsInInput(TableO
FieldReferenceExpression::getName,
Function.identity(),
(fieldRef1, fieldRef2) -> {
throw failAmbigousColumn(fieldRef1.getName());
throw failAmbiuguousColumn(fieldRef1.getName());
},
// we need to maintain order of fields within input for resolving e.g. '*' reference
LinkedHashMap::new
));
}

private static ValidationException failAmbigousColumn(String name) {
return new ValidationException("Ambigous column name: " + name);
private static ValidationException failAmbiuguousColumn(String name) {
return new ValidationException("Ambiguous column name: " + name);
}
}

0 comments on commit 2ffa618

Please sign in to comment.