if (origReadEntry == newReadEntry) {
return; // no directory filter was pushed down
}
try {
HiveScan oldScan = (HiveScan) scanRel.getGroupScan();
HiveScan hiveScan = new HiveScan(newReadEntry, oldScan.storagePlugin, oldScan.columns);
PartitionPruningUtil.rewritePlan(call, filterRel, projectRel, scanRel, hiveScan, builder);
} catch (ExecutionSetupException e) {
throw new DrillRuntimeException(e);
}