public boolean hasQualifyClause() {
    return !destToQualify.isEmpty();
  }
This method is used only for the analyze command to get the partition specs
ql/src/java/org/apache/hadoop/hive/ql/parse/QBParseInfo.java