public static String convertToString(Decimal val) {
    if (val == null) {
      return "";
    }

    HiveDecimal result = HiveDecimal.create(new BigInteger(val.getUnscaled()), val.getScale());
    return (result != null) ? result.toString() : "";
  }
Creates a String from the properties in this format:
   'property_name1'='property_value1',
   'property_name2'='property_value2',
   ...

Properties are listed in alphabetical order.

@param properties The properties to list.
@param exclude Property names to exclude.
ql/src/java/org/apache/hadoop/hive/ql/ddl/ShowUtils.java