@@ -502,18 +502,18 @@ impl ScalarUDFImpl for GetFieldFunc {
502502
503503 fn placement ( & self , args : & [ ExpressionPlacement ] ) -> ExpressionPlacement {
504504 // get_field is leaf-pushable if:
505- // 1. The struct/map argument is a Column or PlaceAtLeafs (not Literal or PlaceAtRoot)
505+ // 1. The struct/map argument is a Column or PlaceAtLeaves (not Literal or PlaceAtRoot)
506506 // 2. All key arguments are literals (static field access, not dynamic per-row lookup)
507507 //
508508 // Literal base is not considered leaf-pushable because it would be constant-folded anyway.
509509 if args. is_empty ( ) {
510510 return ExpressionPlacement :: PlaceAtRoot ;
511511 }
512512
513- // Check if the base (struct/map) argument is Column or PlaceAtLeafs
513+ // Check if the base (struct/map) argument is Column or PlaceAtLeaves
514514 if !matches ! (
515515 args[ 0 ] ,
516- ExpressionPlacement :: Column | ExpressionPlacement :: PlaceAtLeafs
516+ ExpressionPlacement :: Column | ExpressionPlacement :: PlaceAtLeaves
517517 ) {
518518 return ExpressionPlacement :: PlaceAtRoot ;
519519 }
@@ -525,7 +525,7 @@ impl ScalarUDFImpl for GetFieldFunc {
525525 . all ( |a| * a == ExpressionPlacement :: Literal ) ;
526526
527527 if keys_literal {
528- ExpressionPlacement :: PlaceAtLeafs
528+ ExpressionPlacement :: PlaceAtLeaves
529529 } else {
530530 ExpressionPlacement :: PlaceAtRoot
531531 }
@@ -580,22 +580,22 @@ mod tests {
580580
581581 // get_field(col, 'literal') -> leaf-pushable (static field access)
582582 let args = vec ! [ ExpressionPlacement :: Column , ExpressionPlacement :: Literal ] ;
583- assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeafs ) ;
583+ assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeaves ) ;
584584
585585 // get_field(col, 'a', 'b') -> leaf-pushable (nested static field access)
586586 let args = vec ! [
587587 ExpressionPlacement :: Column ,
588588 ExpressionPlacement :: Literal ,
589589 ExpressionPlacement :: Literal ,
590590 ] ;
591- assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeafs ) ;
591+ assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeaves ) ;
592592
593- // get_field(get_field(col, 'a'), 'b') represented as PlaceAtLeafs for base
593+ // get_field(get_field(col, 'a'), 'b') represented as PlaceAtLeaves for base
594594 let args = vec ! [
595- ExpressionPlacement :: PlaceAtLeafs ,
595+ ExpressionPlacement :: PlaceAtLeaves ,
596596 ExpressionPlacement :: Literal ,
597597 ] ;
598- assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeafs ) ;
598+ assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeaves ) ;
599599 }
600600
601601 #[ test]
@@ -641,9 +641,9 @@ mod tests {
641641 // Empty args -> NOT leaf-pushable
642642 assert_eq ! ( func. placement( & [ ] ) , ExpressionPlacement :: PlaceAtRoot ) ;
643643
644- // Just base, no key -> PlaceAtLeafs (not a valid call but should handle gracefully)
644+ // Just base, no key -> PlaceAtLeaves (not a valid call but should handle gracefully)
645645 let args = vec ! [ ExpressionPlacement :: Column ] ;
646- assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeafs ) ;
646+ assert_eq ! ( func. placement( & args) , ExpressionPlacement :: PlaceAtLeaves ) ;
647647
648648 // Literal base with literal key -> NOT leaf-pushable (would be constant-folded)
649649 let args = vec ! [ ExpressionPlacement :: Literal , ExpressionPlacement :: Literal ] ;
0 commit comments