private List<String> intoVariableNames(HplsqlParser.Select_stmtContext ctx, int count) {
    return range(0, count)
            .mapToObj(i -> getIntoVariable(ctx, i))
            .collect(Collectors.toList());
  }
Get variable name assigned in INTO or var=col clause by index
hplsql/src/main/java/org/apache/hive/hplsql/Select.java