private static Set<ReadEntity> getInputs(BaseSemanticAnalyzer sem) {
    Set<ReadEntity> additionalInputs = new HashSet<ReadEntity>();
    for (Entity e : sem.getInputs()) {
      if (e.getType() == Entity.Type.PARTITION) {
        additionalInputs.add(new ReadEntity(e.getTable()));
      }
    }

    // Sets.union keeps the values from the first set if they are present in both
    return Sets.union(sem.getInputs(), additionalInputs);
  }
@param command Passed so that authorization interface can provide more useful information in logs.
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/command/CommandAuthorizer.java