// colInfos, and due to the limitations of dynamic partitioning, they will appear at the
// end of the input schema. Since the order of the columns hasn't changed, and no new
// columns have been added/removed, it is safe to assume that these will have indexes
// greater than or equal to colInfos.size().
if (index < colInfos.size()) {
bucketCol.addAlias(colInfos.get(index).getInternalName(), index);
} else {
return null;
}
}
newBucketCols.add(bucketCol);