private void addGroupingDetails(JobConf conf, TableScanOperator tableScan) {
    final List<String> groupingPartitionColumns = tableScan.getConf().getGroupingPartitionColumns();
    if (groupingPartitionColumns != null) {
      conf.setStrings(TableScanDesc.GROUPING_PARTITION_COLUMNS, groupingPartitionColumns.toArray(new String[0]));
      conf.setInt(TableScanDesc.GROUPING_NUM_BUCKETS, tableScan.getConf().getGroupingNumBuckets());
    }
  }
NOTE: this no longer wraps the IF for LLAP. Call wrapForLlap manually if needed.
ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java