@HiveDecimalVersionV1
  public long longValueExact() {
    return bd.longValueExact();
  }
Specially handling the case that bd=0, and we are converting it to a type where precision=scale,
such as decimal(1, 1).
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimalV1.java