@Override
  public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
    MathContext mc = new MathContext(scale);
    return getBigDecimal(columnIndex).round(mc);
  }
Data independent base class which implements the common part of all Hive
result sets.
jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java