Search in sources :

Example 1 with RetryConfig

use of com.facebook.presto.benchmark.retry.RetryConfig in project presto by prestodb.

the class TestConcurrentExecutor method createExecutor.

private ConcurrentPhaseExecutor createExecutor(BenchmarkRunnerConfig config) {
    SqlParser sqlParser = new SqlParser(new SqlParserOptions().allowIdentifierSymbol(COLON, AT_SIGN));
    ParsingOptions parsingOptions = ParsingOptions.builder().setDecimalLiteralTreatment(AS_DOUBLE).build();
    PrestoActionFactory prestoActionFactory = new BenchmarkPrestoActionFactory(new PrestoExceptionClassifier(ImmutableSet.of()), new PrestoClusterConfig().setJdbcUrl(format("jdbc:presto://%s:%s", queryRunner.getServer().getAddress().getHost(), queryRunner.getServer().getAddress().getPort())), new RetryConfig());
    return new ConcurrentPhaseExecutor(sqlParser, parsingOptions, prestoActionFactory, ImmutableSet.of(getEventClient()), config.setTestId(TEST_ID));
}
Also used : SqlParserOptions(com.facebook.presto.sql.parser.SqlParserOptions) BenchmarkPrestoActionFactory(com.facebook.presto.benchmark.prestoaction.BenchmarkPrestoActionFactory) PrestoExceptionClassifier(com.facebook.presto.benchmark.prestoaction.PrestoExceptionClassifier) RetryConfig(com.facebook.presto.benchmark.retry.RetryConfig) ParsingOptions(com.facebook.presto.sql.parser.ParsingOptions) SqlParser(com.facebook.presto.sql.parser.SqlParser) PrestoActionFactory(com.facebook.presto.benchmark.prestoaction.PrestoActionFactory) BenchmarkPrestoActionFactory(com.facebook.presto.benchmark.prestoaction.BenchmarkPrestoActionFactory) PrestoClusterConfig(com.facebook.presto.benchmark.prestoaction.PrestoClusterConfig)

Aggregations

BenchmarkPrestoActionFactory (com.facebook.presto.benchmark.prestoaction.BenchmarkPrestoActionFactory)1 PrestoActionFactory (com.facebook.presto.benchmark.prestoaction.PrestoActionFactory)1 PrestoClusterConfig (com.facebook.presto.benchmark.prestoaction.PrestoClusterConfig)1 PrestoExceptionClassifier (com.facebook.presto.benchmark.prestoaction.PrestoExceptionClassifier)1 RetryConfig (com.facebook.presto.benchmark.retry.RetryConfig)1 ParsingOptions (com.facebook.presto.sql.parser.ParsingOptions)1 SqlParser (com.facebook.presto.sql.parser.SqlParser)1 SqlParserOptions (com.facebook.presto.sql.parser.SqlParserOptions)1