public static ColumnStatistics createColumnStatistics(ColumnStatisticsData data, Table tbl,
      FieldSchema column, String partName) {
    ColumnStatisticsObj statObj = new ColumnStatisticsObj(column.getName(), column.getType(), data);
    ColumnStatistics colStats = new ColumnStatistics();
    ColumnStatisticsDesc statsDesc = new ColumnStatisticsDesc(true, tbl.getDbName(), tbl.getTableName());
    statsDesc.setPartName(partName);
    colStats.setStatsDesc(statsDesc);
    colStats.setStatsObj(Collections.singletonList(statObj));
    colStats.setEngine(HIVE_ENGINE);
    return colStats;
  }
Creates a {@link ColumnStatistics} for a given table, partition and column information,
using the given statistics data.
@param data the column statistics data
@param tbl the target table for stats
@param column the target column for stats
@param partName the target partition for stats
@return column statistics object.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/StatisticsTestUtils.java