use of com.facebook.presto.sql.planner.iterative.rule.test.RuleTester in project presto by prestodb.
the class TestRuntimeReorderJoinSides method setUp.
@BeforeClass
public void setUp() {
tester = new RuleTester(ImmutableList.of(), ImmutableMap.of(), Optional.of(NODES_COUNT));
connectorId = tester.getCurrentConnectorId();
TpchTableHandle nationTpchTableHandle = new TpchTableHandle("nation", 1.0);
TpchTableHandle supplierTpchTableHandle = new TpchTableHandle("supplier", 1.0);
nationTableHandle = new TableHandle(connectorId, nationTpchTableHandle, TestingTransactionHandle.create(), Optional.of(new TpchTableLayoutHandle(nationTpchTableHandle, TupleDomain.all())));
supplierTableHandle = new TableHandle(connectorId, supplierTpchTableHandle, TestingTransactionHandle.create(), Optional.of(new TpchTableLayoutHandle(supplierTpchTableHandle, TupleDomain.all())));
nationColumnHandle = new TpchColumnHandle("nationkey", BIGINT);
suppColumnHandle = new TpchColumnHandle("suppkey", BIGINT);
}
use of com.facebook.presto.sql.planner.iterative.rule.test.RuleTester in project presto by prestodb.
the class TestReorderJoins method setUp.
@BeforeClass
public void setUp() {
tester = new RuleTester(ImmutableList.of(), ImmutableMap.of(JOIN_DISTRIBUTION_TYPE, JoinDistributionType.AUTOMATIC.name(), JOIN_REORDERING_STRATEGY, JoinReorderingStrategy.AUTOMATIC.name()), Optional.of(4));
this.functionResolution = new FunctionResolution(tester.getMetadata().getFunctionAndTypeManager());
}
Aggregations