public boolean containsPartitionColumnsOnly(ImmutableBitSet cols) {
    for (int i = cols.nextSetBit(0); i >= 0; i++, i = cols.nextSetBit(i + 1)) {
      if (!hivePartitionColsMap.containsKey(i)) {
        return false;
      }
    }
    return true;
  }
Note: DOES NOT CHECK txn stats.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/RelOptHiveTable.java