@Nullable static Integer getIntegerProperty(Table table, String propertyName) {
    String val = getTableProperty(table, propertyName);
    if (val == null) {
      return null;
    }
    try {
      return Integer.parseInt(val);
    } catch (NumberFormatException e) {
      throw new NumberFormatException(String.format("Exception while parsing property[%s] with Value [%s] as Integer",
          propertyName,
          val));
    }
  }
@param pushedSegment         the pushed data segment object
@param segmentsDescriptorDir actual directory path for descriptors.
@return a sanitize file name
druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java