private static Path[] generateFinalPath(Partition part, List<Path> selectedPaths) {
    Path[] finalPaths;
    if (selectedPaths.size() == 0) {
      LOG.warn("Using full partition scan :" + Arrays.toString(part.getPath()) + ".");
      finalPaths = part.getPath();
    } else {
      finalPaths = selectedPaths.toArray(new Path[0]);
    }
    return finalPaths;
  }
Decide the final path.

@param part
@param selectedPaths
@return
ql/src/java/org/apache/hadoop/hive/ql/optimizer/listbucketingpruner/ListBucketingPruner.java