private Timestamp readTimestampValue(String timestampStr) {
    try {
      TimestampWritableV2 writableVal = new TimestampWritableV2(
          org.apache.hadoop.hive.common.type.Timestamp.valueOf(timestampStr));
      return new Timestamp(writableVal.getSeconds());
    } catch (IllegalArgumentException err) {
      LOG.debug("Reading timestamp value as seconds since epoch: {}", timestampStr);
      return new Timestamp(Long.parseLong(timestampStr));
    }
  }
ColumnStatsUpdateTask implementation. For example, ALTER TABLE src_stat
UPDATE STATISTICS for column key SET ('numDVs'='1111','avgColLen'='1.111');
For another example, ALTER TABLE src_stat_part PARTITION(partitionId=100)
UPDATE STATISTICS for column value SET
('maxColLen'='4444','avgColLen'='44.4');
ql/src/java/org/apache/hadoop/hive/ql/exec/ColumnStatsUpdateTask.java