public List<ColStatistics> getColStat(List<Integer> projIndxLst, boolean allowMissingStats) {
    List<ColStatistics> colStatsBldr = Lists.newArrayList();
    Set<Integer> projIndxSet = new HashSet<>(projIndxLst);
    for (Integer i : projIndxLst) {
      if (i >= noOfNonVirtualCols) {
        projIndxSet.remove(i);
      } else if (hiveColStatsMap.get(i) != null) {
        colStatsBldr.add(hiveColStatsMap.get(i));
        projIndxSet.remove(i);
      }
    }
    if (!projIndxSet.isEmpty()) {
      LOG.info("Calculating column statistics for {}, projIndxSet: {}, allowMissingStats: {}", name,
          projIndxLst, allowMissingStats);
      updateColStats(projIndxSet, allowMissingStats);
      for (Integer i : projIndxSet) {
        colStatsBldr.add(hiveColStatsMap.get(i));
      }
    }

    return colStatsBldr;
  }
Note: DOES NOT CHECK txn stats.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/RelOptHiveTable.java