@@ -7,13 +7,11 @@ use crate::{
77 nodes:: { ArcPredicateNode , JoinType , PredicateType , ReprPredicateNode } ,
88 predicates:: {
99 attr_index_pred:: AttrIndexPred ,
10- bin_op_pred:: BinOpType ,
1110 list_pred:: ListPred ,
1211 log_op_pred:: { LogOpPred , LogOpType } ,
1312 } ,
1413 properties:: attr_ref:: {
15- self , AttrRef , AttrRefs , BaseTableAttrRef , EqPredicate , GroupAttrRefs ,
16- SemanticCorrelation ,
14+ AttrRef , AttrRefs , BaseTableAttrRef , EqPredicate , SemanticCorrelation ,
1715 } ,
1816 types:: GroupId ,
1917 } ,
@@ -409,23 +407,24 @@ impl<S: CostModelStorageManager> CostModelImpl<S> {
409407mod tests {
410408 use std:: collections:: HashMap ;
411409
410+ use attr_ref:: GroupAttrRefs ;
411+
412412 use crate :: {
413413 common:: {
414- predicates:: { attr_index_pred, constant_pred:: ConstantType } ,
415- properties:: Attribute ,
416- types:: TableId ,
414+ predicates:: bin_op_pred:: BinOpType ,
415+ properties:: { attr_ref, Attribute } ,
417416 values:: Value ,
418417 } ,
419- cost_model:: tests:: {
418+ stats:: DEFAULT_EQ_SEL ,
419+ test_utils:: tests:: MemoGroupInfo ,
420+ test_utils:: tests:: {
420421 attr_index, bin_op, cnst, create_four_table_mock_cost_model, create_mock_cost_model,
421422 create_three_table_mock_cost_model, create_two_table_mock_cost_model,
422423 create_two_table_mock_cost_model_custom_row_cnts, empty_per_attr_stats, log_op,
423424 per_attr_stats_with_dist_and_ndistinct, per_attr_stats_with_ndistinct,
424- TestOptCostModelMock , TestPerAttributeStats , TEST_ATTR1_NAME , TEST_ATTR2_NAME ,
425- TEST_TABLE1_ID , TEST_TABLE2_ID , TEST_TABLE3_ID , TEST_TABLE4_ID ,
425+ TestOptCostModelMock , TEST_ATTR1_NAME , TEST_ATTR2_NAME , TEST_TABLE1_ID , TEST_TABLE2_ID ,
426+ TEST_TABLE3_ID , TEST_TABLE4_ID ,
426427 } ,
427- memo_ext:: tests:: MemoGroupInfo ,
428- stats:: DEFAULT_EQ_SEL ,
429428 } ;
430429
431430 use super :: * ;
@@ -905,7 +904,8 @@ mod tests {
905904 expected_inner_sel
906905 ) ;
907906 // check the outer sels
908- assert_outer_selectivities ( & cost_model, expr_tree, expr_tree_rev, & attr_refs, 0.25 , 0.2 ) ;
907+ assert_outer_selectivities ( & cost_model, expr_tree, expr_tree_rev, & attr_refs, 0.25 , 0.2 )
908+ . await ;
909909 }
910910
911911 /// Non-unique oncond means the column is not unique in either table
0 commit comments