File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ pub fn create_col_from_scalar_expr(
174
174
subqry_alias : String ,
175
175
) -> Result < Column > {
176
176
match scalar_expr {
177
- Expr :: Alias ( alias_box ) => {
178
- // alias_box : &Box<Alias> (if you’re matching on &expr) or Box<Alias>
179
- let name = & alias_box . name ;
177
+ Expr :: Alias ( boxed_alias ) => {
178
+ // boxed_alias : &Box<Alias> (if you’re matching on &expr) or Box<Alias>
179
+ let name = & boxed_alias . name ;
180
180
Ok ( Column :: new (
181
181
Some :: < TableReference > ( subqry_alias. into ( ) ) ,
182
182
name,
@@ -256,9 +256,9 @@ fn coerce_exprs_for_schema(
256
256
let new_type = dst_schema. field ( idx) . data_type ( ) ;
257
257
if new_type != & expr. get_type ( src_schema) ? {
258
258
match expr {
259
- Expr :: Alias ( alias_box ) => {
260
- // alias_box : Box<Alias>
261
- let Alias { expr, name, .. } = * alias_box ;
259
+ Expr :: Alias ( boxed_alias ) => {
260
+ // boxed_alias : Box<Alias>
261
+ let Alias { expr, name, .. } = * boxed_alias ;
262
262
Ok ( expr. cast_to ( new_type, src_schema) ?. alias ( name) )
263
263
}
264
264
#[ expect( deprecated) ]
Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ fn rewrite_in_terms_of_projection(
137
137
/// so avg(c) as average will match avgc
138
138
fn expr_match ( needle : & Expr , expr : & Expr ) -> bool {
139
139
// check inside aliases
140
- if let Expr :: Alias ( alias_box ) = expr {
141
- // alias_box : &Box<Alias>, so alias_box .as_ref() is &Alias
142
- let alias: & Alias = alias_box . as_ref ( ) ;
140
+ if let Expr :: Alias ( boxed_alias ) = expr {
141
+ // boxed_alias : &Box<Alias>, so boxed_alias .as_ref() is &Alias
142
+ let alias: & Alias = boxed_alias . as_ref ( ) ;
143
143
// alias.expr: Box<Expr>, so alias.expr.as_ref() is &Expr
144
144
alias. expr . as_ref ( ) == needle
145
145
} else {
Original file line number Diff line number Diff line change @@ -244,8 +244,8 @@ impl ExprSchemable for Expr {
244
244
/// column that does not exist in the schema.
245
245
fn nullable ( & self , input_schema : & dyn ExprSchema ) -> Result < bool > {
246
246
match self {
247
- Expr :: Alias ( alias_box ) => {
248
- let Alias { expr, .. } = alias_box . as_ref ( ) ;
247
+ Expr :: Alias ( boxed_alias ) => {
248
+ let Alias { expr, .. } = boxed_alias . as_ref ( ) ;
249
249
expr. nullable ( input_schema)
250
250
}
251
251
Expr :: Not ( expr) | Expr :: Negative ( expr) => expr. nullable ( input_schema) ,
Original file line number Diff line number Diff line change @@ -971,8 +971,8 @@ pub fn iter_conjunction(expr: &Expr) -> impl Iterator<Item = &Expr> {
971
971
stack. push ( right) ;
972
972
stack. push ( left) ;
973
973
}
974
- Expr :: Alias ( alias_box ) => {
975
- stack. push ( & * alias_box . expr ) ;
974
+ Expr :: Alias ( boxed_alias ) => {
975
+ stack. push ( & * boxed_alias . expr ) ;
976
976
}
977
977
other => return Some ( other) ,
978
978
}
@@ -997,7 +997,7 @@ pub fn iter_conjunction_owned(expr: Expr) -> impl Iterator<Item = Expr> {
997
997
stack. push ( * right) ;
998
998
stack. push ( * left) ;
999
999
}
1000
- Expr :: Alias ( alias_box ) => stack. push ( * alias_box . expr ) ,
1000
+ Expr :: Alias ( boxed_alias ) => stack. push ( * boxed_alias . expr ) ,
1001
1001
other => return Some ( other) ,
1002
1002
}
1003
1003
}
You can’t perform that action at this time.
0 commit comments