@Override
  public int getMaxLength() {
    return maxLength;
  }
To support vectorized cast of decimal to string.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastDecimalToVarChar.java