Search in sources :

Example 1 with EventsBuilder

use of com.facebook.presto.execution.TestEventListener.EventsBuilder in project presto by prestodb.

the class TestCompletedEventWarnings method setUp.

@BeforeClass
public void setUp() throws Exception {
    SessionBuilder sessionBuilder = testSessionBuilder();
    generatedEvents = new EventsBuilder();
    queryRunner = DistributedQueryRunner.builder(sessionBuilder.build()).setExtraProperties(ImmutableMap.of("testing-warning-collector.preloaded-warnings", String.valueOf(TEST_WARNINGS))).setNodeCount(1).build();
    queryRunner.installPlugin(new TestingEventListenerPlugin(generatedEvents));
    generatedEvents.initialize(EXPECTED_EVENTS);
}
Also used : EventsBuilder(com.facebook.presto.execution.TestEventListener.EventsBuilder) TestingEventListenerPlugin(com.facebook.presto.execution.TestEventListenerPlugin.TestingEventListenerPlugin) SessionBuilder(com.facebook.presto.Session.SessionBuilder) TestingSession.testSessionBuilder(com.facebook.presto.testing.TestingSession.testSessionBuilder) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

SessionBuilder (com.facebook.presto.Session.SessionBuilder)1 EventsBuilder (com.facebook.presto.execution.TestEventListener.EventsBuilder)1 TestingEventListenerPlugin (com.facebook.presto.execution.TestEventListenerPlugin.TestingEventListenerPlugin)1 TestingSession.testSessionBuilder (com.facebook.presto.testing.TestingSession.testSessionBuilder)1 BeforeClass (org.testng.annotations.BeforeClass)1