File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl StatsRewriteRule for SpatialDistancePrune {
7777 return Ok ( None ) ;
7878 }
7979
80- let Some ( ( geom, constant) ) = geometry_and_constant ( distance, ctx ) ? else {
80+ let Some ( ( geom, constant) ) = geometry_and_constant ( distance) ? else {
8181 return Ok ( None ) ;
8282 } ;
8383 let Some ( query) = query_aabb ( constant, ctx) ? else {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl StatsRewriteRule for SpatialIntersectsPrune {
3737 expr : & BoundExpression ,
3838 ctx : & StatsRewriteCtx < ' _ > ,
3939 ) -> VortexResult < Option < BoundExpression > > {
40- let Some ( ( geom, constant) ) = geometry_and_constant ( expr, ctx ) ? else {
40+ let Some ( ( geom, constant) ) = geometry_and_constant ( expr) ? else {
4141 return Ok ( None ) ;
4242 } ;
4343 let Some ( query) = query_aabb ( constant, ctx) ? else {
Original file line number Diff line number Diff line change @@ -51,10 +51,9 @@ use crate::extension::single_geometry;
5151/// shape (in either operand order), or the column's dtype carries no [`GeometryAabb`] statistic.
5252/// An asymmetric predicate (e.g. a future contains) must recover which operand is the column
5353/// itself instead of calling this.
54- fn geometry_and_constant < ' a > (
55- expr : & ' a BoundExpression ,
56- ctx : & StatsRewriteCtx < ' _ > ,
57- ) -> VortexResult < Option < ( & ' a BoundExpression , & ' a Scalar ) > > {
54+ fn geometry_and_constant (
55+ expr : & BoundExpression ,
56+ ) -> VortexResult < Option < ( & BoundExpression , & Scalar ) > > {
5857 // The predicate is symmetric, so the column (scope root) and the constant may be on either
5958 // side.
6059 let ( lhs, rhs) = ( expr. child ( 0 ) , expr. child ( 1 ) ) ;
You can’t perform that action at this time.
0 commit comments