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