Skip to content

Commit

Permalink
Update UnsafeRow to use API
Browse files Browse the repository at this point in the history
  • Loading branch information
nongli committed Mar 10, 2016
1 parent 50e1244 commit af7ca2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public Decimal getDecimal(int ordinal, int precision, int scale) {
return null;
}
if (precision <= Decimal.MAX_LONG_DIGITS()) {
return Decimal.apply(getLong(ordinal), precision, scale);
return Decimal.createUnsafe(getLong(ordinal), precision, scale);
} else {
byte[] bytes = getBinary(ordinal);
BigInteger bigInteger = new BigInteger(bytes);
Expand Down

0 comments on commit af7ca2d

Please sign in to comment.