public static DoubleColumnStatsDataInspector doubleInspectorFromStats(ColumnStatisticsObj cso) {
    DoubleColumnStatsDataInspector columnStats;
    if (cso.getStatsData().getDoubleStats() instanceof DoubleColumnStatsDataInspector) {
      columnStats =
          (DoubleColumnStatsDataInspector)(cso.getStatsData().getDoubleStats());
    } else {
      columnStats = new DoubleColumnStatsDataInspector(cso.getStatsData().getDoubleStats());
    }
    return columnStats;
  }
Convertes to DoubleColumnStatsDataInspector
if it's a DoubleColumnStatsData.
@param cso ColumnStatisticsObj
@return DoubleColumnStatsDataInspector
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/columnstats/ColumnsStatsUtils.java