code: private static Integer decimalDigits(Type type)
      {
          if (type instanceof DecimalType) {
              return ((DecimalType) type).getScale();
          }
          return null;
      }
docs: DECIMAL_DIGITS is the number of fractional digits