use of io.trino.testing.statistics.StatisticsAssertion in project trino by trinodb.
the class TestTpcdsLocalStats method setUp.
@BeforeClass
public void setUp() {
Session defaultSession = testSessionBuilder().setCatalog("tpcds").setSchema("sf1").setSystemProperty(COLLECT_PLAN_STATISTICS_FOR_ALL_QUERIES, "true").build();
LocalQueryRunner queryRunner = LocalQueryRunner.create(defaultSession);
queryRunner.createCatalog("tpcds", new TpcdsConnectorFactory(), emptyMap());
statisticsAssertion = new StatisticsAssertion(queryRunner);
}
use of io.trino.testing.statistics.StatisticsAssertion in project trino by trinodb.
the class TestTpchDistributedStats method setup.
@BeforeClass
public void setup() throws Exception {
DistributedQueryRunner runner = TpchQueryRunnerBuilder.builder().amendSession(builder -> builder.setSystemProperty(PREFER_PARTIAL_AGGREGATION, "false").setSystemProperty(COLLECT_PLAN_STATISTICS_FOR_ALL_QUERIES, "true")).buildWithoutCatalogs();
runner.createCatalog("tpch", "tpch", ImmutableMap.of(TPCH_COLUMN_NAMING_PROPERTY, ColumnNaming.STANDARD.name()));
statisticsAssertion = new StatisticsAssertion(runner);
}
use of io.trino.testing.statistics.StatisticsAssertion in project trino by trinodb.
the class TestTpchLocalStats method setUp.
@BeforeClass
public void setUp() {
Session defaultSession = testSessionBuilder().setCatalog("tpch").setSchema(TINY_SCHEMA_NAME).setSystemProperty(PREFER_PARTIAL_AGGREGATION, "false").setSystemProperty(COLLECT_PLAN_STATISTICS_FOR_ALL_QUERIES, "true").build();
LocalQueryRunner queryRunner = LocalQueryRunner.create(defaultSession);
queryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of(TPCH_COLUMN_NAMING_PROPERTY, ColumnNaming.STANDARD.name()));
statisticsAssertion = new StatisticsAssertion(queryRunner);
}
Aggregations