use of org.apache.druid.sql.calcite.filtration.Filtration in project druid by druid-io.
the class DruidQueryTest method test_filtration_joinDataSource_intervalInBaseTableFilter_right.
@Test
public void test_filtration_joinDataSource_intervalInBaseTableFilter_right() {
DataSource dataSource = join(JoinType.RIGHT, filterWithInterval);
DataSource expectedDataSource = join(JoinType.RIGHT, selectorFilter);
Pair<DataSource, Filtration> pair = DruidQuery.getFiltration(dataSource, otherFilter, VirtualColumnRegistry.create(RowSignature.empty(), TestExprMacroTable.INSTANCE));
verify(pair, expectedDataSource, otherFilter, Intervals.utc(100, 200));
}
use of org.apache.druid.sql.calcite.filtration.Filtration in project druid by druid-io.
the class DruidQueryTest method test_filtration_joinDataSource_intervalInQueryFilter.
@Test
public void test_filtration_joinDataSource_intervalInQueryFilter() {
DataSource dataSource = join(JoinType.INNER, otherFilter);
Pair<DataSource, Filtration> pair = DruidQuery.getFiltration(dataSource, filterWithInterval, VirtualColumnRegistry.create(RowSignature.empty(), TestExprMacroTable.INSTANCE));
verify(pair, dataSource, selectorFilter, Intervals.utc(100, 200));
}
use of org.apache.druid.sql.calcite.filtration.Filtration in project druid by druid-io.
the class DruidQueryTest method test_filtration_joinDataSource_intervalInBaseTableFilter_full.
@Test
public void test_filtration_joinDataSource_intervalInBaseTableFilter_full() {
DataSource dataSource = join(JoinType.FULL, filterWithInterval);
DataSource expectedDataSource = join(JoinType.FULL, selectorFilter);
Pair<DataSource, Filtration> pair = DruidQuery.getFiltration(dataSource, otherFilter, VirtualColumnRegistry.create(RowSignature.empty(), TestExprMacroTable.INSTANCE));
verify(pair, expectedDataSource, otherFilter, Intervals.utc(100, 200));
}
Aggregations