protected List<String> getReferenceableColumnAliases(TypeCheckCtx ctx) {
      return ctx.getInputRR().getReferenceableColumnAliases(null, -1);
    }
Returns true if des is a descendant of ans (ancestor)
ql/src/java/org/apache/hadoop/hive/ql/parse/type/TypeCheckProcFactory.java