Toggle navigation
Home
com.facebook.presto.sql.planner.iterative.RuleSet to com.facebook.presto.sql.planner.iterative.rule.PickTableLayout
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'presto'}
Hierarchy/Composition: T_SUPER_R
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
tester().assertThat(pickTableLayout).on(p -> p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),BooleanLiteral.TRUE_LITERAL,Optional.of(DUMMY_TABLE_LAYOUT_HANDLE)))
to
tester().assertThat(pickTableLayout.pickTableLayoutWithoutPredicate()).on(p -> p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),BooleanLiteral.TRUE_LITERAL,Optional.of(DUMMY_TABLE_LAYOUT_HANDLE)))
tester().assertThat(pickTableLayout).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),expression("nationkey = BIGINT '44'"),Optional.of(nationTableLayoutHandle))))
to
tester().assertThat(pickTableLayout.pickTableLayoutForPredicate()).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),expression("nationkey = BIGINT '44'"),Optional.of(nationTableLayoutHandle))))
tester().assertThat(pickTableLayout).on(p -> p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT))))
to
tester().assertThat(pickTableLayout.pickTableLayoutWithoutPredicate()).on(p -> p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT))))
tester().assertThat(pickTableLayout).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)))))
to
tester().assertThat(pickTableLayout.pickTableLayoutForPredicate()).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)))))
tester().assertThat(pickTableLayout).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),BooleanLiteral.TRUE_LITERAL,Optional.of(nationTableLayoutHandle))))
to
tester().assertThat(pickTableLayout.pickTableLayoutForPredicate()).on(p -> p.filter(expression("nationkey = BIGINT '44'"),p.tableScan(nationTableHandle,ImmutableList.of(p.symbol("nationkey",BIGINT)),ImmutableMap.of(p.symbol("nationkey",BIGINT),new TpchColumnHandle("nationkey",BIGINT)),BooleanLiteral.TRUE_LITERAL,Optional.of(nationTableLayoutHandle))))