@@ -141,7 +141,7 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
141141
142142 /// Convert the left and right child nodes of some operation to what they semantically are.
143143 /// This is convenient to avoid repeating the same logic just with "left" and "right" swapped.
144- /// The last return value is true when the input node (left) is a ColumnRefPred .
144+ /// The last return value is true when the input node (left) is a AttributeRefPred .
145145 #[ allow( clippy:: type_complexity) ]
146146 fn get_semantic_nodes (
147147 & self ,
@@ -203,11 +203,11 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
203203 }
204204 PredicateType :: AttributeRef => {
205205 let attr_ref_expr = AttributeRefPred :: from_pred_node ( cast_expr_child)
206- . expect ( "we already checked that the type is ColumnRef " ) ;
206+ . expect ( "we already checked that the type is AttributeRef " ) ;
207207 let attr_ref_idx = attr_ref_expr. index ( ) ;
208208 cast_node = attr_ref_expr. into_pred_node ( ) ;
209209 // The "invert" cast is to invert the cast so that we're casting the
210- // non_cast_node to the column 's original type.
210+ // non_cast_node to the attribute 's original type.
211211 // TODO(migration): double check
212212 let invert_cast_data_type = & ( self
213213 . storage_manager
@@ -218,7 +218,7 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
218218 match non_cast_node. typ {
219219 PredicateType :: AttributeRef => {
220220 // In general, there's no way to remove the Cast here. We can't move
221- // the Cast to the other ColumnRef
221+ // the Cast to the other AttributeRef
222222 // because that would lead to an infinite loop. Thus, we just leave
223223 // the cast where it is and break.
224224 true
@@ -254,7 +254,7 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
254254 is_left_attr_ref = true ;
255255 attr_ref_exprs. push (
256256 AttributeRefPred :: from_pred_node ( uncasted_left)
257- . expect ( "we already checked that the type is ColumnRef " ) ,
257+ . expect ( "we already checked that the type is AttributeRef " ) ,
258258 ) ;
259259 }
260260 PredicateType :: Constant ( _) => {
@@ -274,7 +274,7 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
274274 PredicateType :: AttributeRef => {
275275 attr_ref_exprs. push (
276276 AttributeRefPred :: from_pred_node ( uncasted_right)
277- . expect ( "we already checked that the type is ColumnRef " ) ,
277+ . expect ( "we already checked that the type is AttributeRef " ) ,
278278 ) ;
279279 }
280280 PredicateType :: Constant ( _) => values. push (
@@ -292,8 +292,8 @@ impl<S: CostModelStorageLayer> CostModelImpl<S> {
292292 }
293293
294294 /// The default selectivity of a comparison expression
295- /// Used when one side of the comparison is a column while the other side is something too
296- /// complex/impossible to evaluate (subquery, UDF, another column , we have no stats, etc.)
295+ /// Used when one side of the comparison is a attribute while the other side is something too
296+ /// complex/impossible to evaluate (subquery, UDF, another attribute , we have no stats, etc.)
297297 fn get_default_comparison_op_selectivity ( comp_bin_op_typ : BinOpType ) -> f64 {
298298 assert ! ( comp_bin_op_typ. is_comparison( ) ) ;
299299 match comp_bin_op_typ {
0 commit comments