Search in sources :

Example 1 with TpcdsConnectorFactory

use of com.facebook.presto.tpcds.TpcdsConnectorFactory in project presto by prestodb.

the class TestTpcdsLocalStats method setUp.

@BeforeClass
public void setUp() {
    Session defaultSession = testSessionBuilder().setCatalog("tpcds").setSchema("sf1").setSystemProperty(PRINT_STATS_FOR_NON_JOIN_QUERY, "true").build();
    LocalQueryRunner queryRunner = new LocalQueryRunner(defaultSession);
    queryRunner.createCatalog("tpcds", new TpcdsConnectorFactory(), emptyMap());
    statisticsAssertion = new StatisticsAssertion(queryRunner);
}
Also used : TpcdsConnectorFactory(com.facebook.presto.tpcds.TpcdsConnectorFactory) StatisticsAssertion(com.facebook.presto.tests.statistics.StatisticsAssertion) LocalQueryRunner(com.facebook.presto.testing.LocalQueryRunner) Session(com.facebook.presto.Session) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

Session (com.facebook.presto.Session)1 LocalQueryRunner (com.facebook.presto.testing.LocalQueryRunner)1 StatisticsAssertion (com.facebook.presto.tests.statistics.StatisticsAssertion)1 TpcdsConnectorFactory (com.facebook.presto.tpcds.TpcdsConnectorFactory)1 BeforeClass (org.testng.annotations.BeforeClass)1