public static TimestampColumnStatsDataInspector timestampInspectorFromStats(ColumnStatisticsObj cso) {
    TimestampColumnStatsDataInspector timestampColumnStats;
    if (cso.getStatsData().getTimestampStats() instanceof TimestampColumnStatsDataInspector) {
      timestampColumnStats =
          (TimestampColumnStatsDataInspector)(cso.getStatsData().getTimestampStats());
    } else {
      timestampColumnStats = new TimestampColumnStatsDataInspector(cso.getStatsData().getTimestampStats());
    }
    return timestampColumnStats;
  }
Convertes to TimestampColumnStatsDataInspector if it's a TimestampColumnStatsData.
@param cso ColumnStatisticsObj
@return TimestampColumnStatsDataInspector
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/columnstats/ColumnsStatsUtils.java