Skip to content

Commit

Permalink
Cleanup inverted logic in RaptorBucketFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Nov 19, 2016
1 parent b12f27b commit 6556fe2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ private static HashFunction getHashFunction(Type type)
if (type.equals(INTEGER)) {
return intHashFunction();
}
if (!isVarcharType(type)) {
throw new PrestoException(NOT_SUPPORTED, "Bucketing is supported for bigint, integer and varchar, not " + type.getDisplayName());
if (isVarcharType(type)) {
return varcharHashFunction();
}
return varcharHashFunction();
throw new PrestoException(NOT_SUPPORTED, "Bucketing is supported for bigint, integer and varchar, not " + type.getDisplayName());
}

private static HashFunction bigintHashFunction()
Expand Down

0 comments on commit 6556fe2

Please sign in to comment.