private boolean isBulkCollect(HplsqlParser.Select_stmtContext ctx) {
    HplsqlParser.Into_clauseContext into = getIntoClause(ctx);
    return into != null && into.bulk_collect_clause() != null;
  }
Get number of elements in INTO or var=col assignment clause
hplsql/src/main/java/org/apache/hive/hplsql/Select.java