use of com.facebook.presto.sql.tree.NodeLocation in project presto by prestodb.
the class TestThriftTaskStatus method getExecutionFailureInfos.
private List<ExecutionFailureInfo> getExecutionFailureInfos() {
IOException ioException = new IOException("Remote call timed out");
ioException.addSuppressed(new IOException("Thrift call timed out"));
PrestoTransportException prestoTransportException = new PrestoTransportException(TOO_MANY_REQUESTS_FAILED, REMOTE_HOST, "Too many requests failed", new PrestoException(REMOTE_TASK_ERROR, "Remote Task Error"));
ParsingException parsingException = new ParsingException("Parsing Exception", new NodeLocation(100, 1));
return Failures.toFailures(ImmutableList.of(ioException, prestoTransportException, parsingException));
}
Aggregations