Search in sources :

Example 1 with NodeLocation

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));
}
Also used : NodeLocation(com.facebook.presto.sql.tree.NodeLocation) ParsingException(com.facebook.presto.sql.parser.ParsingException) PrestoException(com.facebook.presto.spi.PrestoException) IOException(java.io.IOException) PrestoTransportException(com.facebook.presto.spi.PrestoTransportException)

Aggregations

PrestoException (com.facebook.presto.spi.PrestoException)1 PrestoTransportException (com.facebook.presto.spi.PrestoTransportException)1 ParsingException (com.facebook.presto.sql.parser.ParsingException)1 NodeLocation (com.facebook.presto.sql.tree.NodeLocation)1 IOException (java.io.IOException)1