use of com.facebook.presto.tests.statistics.StatisticsAssertion in project presto by prestodb.
the class TestTpchDistributedStats method setup.
@BeforeClass
public void setup() throws Exception {
DistributedQueryRunner runner = TpchQueryRunnerBuilder.builder().amendSession(builder -> builder.setSystemProperty(PREFER_PARTIAL_AGGREGATION, "false")).amendSession(builder -> builder.setSystemProperty(PRINT_STATS_FOR_NON_JOIN_QUERY, "true")).buildWithoutCatalogs();
runner.createCatalog("tpch", "tpch", ImmutableMap.of(TPCH_COLUMN_NAMING_PROPERTY, ColumnNaming.STANDARD.name()));
statisticsAssertion = new StatisticsAssertion(runner);
}
use of com.facebook.presto.tests.statistics.StatisticsAssertion 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);
}
use of com.facebook.presto.tests.statistics.StatisticsAssertion in project presto by prestodb.
the class TestTpchLocalStats method setUp.
@BeforeClass
public void setUp() {
Session defaultSession = testSessionBuilder().setCatalog("tpch").setSchema(TINY_SCHEMA_NAME).setSystemProperty(PREFER_PARTIAL_AGGREGATION, "false").setSystemProperty(PRINT_STATS_FOR_NON_JOIN_QUERY, "true").build();
LocalQueryRunner queryRunner = new LocalQueryRunner(defaultSession);
queryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of(TPCH_COLUMN_NAMING_PROPERTY, ColumnNaming.STANDARD.name()));
statisticsAssertion = new StatisticsAssertion(queryRunner);
}
Aggregations