public Var parseAndEval(Arguments arguments)  {
    ParseTree tree;
    try (InputStream input = sourceStream(arguments)) {
      tree = parse(input);
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
    Var result = null;
    try {
      result = evaluate(tree, arguments.main);
    } catch (HplValidationException e) {
      signal(Signal.Type.VALIDATION, e.getMessage(), e);
    }
    if (result != null) {
      console.printLine(result.toString());
    }
    return result;
  }
Set SQL_NO_DATA as the result of SQL execution
hplsql/src/main/java/org/apache/hive/hplsql/Exec.java