@@ -15,9 +15,7 @@ use vortex_error::vortex_ensure;
1515use vortex_session:: VortexSession ;
1616
1717use crate :: dtype:: DType ;
18- use crate :: expr:: StatsCatalog ;
1918use crate :: expr:: display:: DisplayTreeExpr ;
20- use crate :: expr:: stats:: Stat ;
2119use crate :: scalar_fn:: ScalarFnRef ;
2220use crate :: scalar_fn:: fns:: root:: Root ;
2321
@@ -142,28 +140,6 @@ impl Expression {
142140 crate :: stats:: rewrite:: StatsRewriteCtx :: new ( session, scope) . satisfy ( self )
143141 }
144142
145- /// Returns an expression representing the zoned statistic for the given stat, if available.
146- ///
147- /// The [`StatsCatalog`] returns expressions that can be evaluated using the zone map as a
148- /// scope. Expressions can implement this function to propagate such statistics through the
149- /// expression tree. For example, the `a + 10` expression could propagate `min: min(a) + 10`.
150- ///
151- /// NOTE(gatesn): we currently cannot represent statistics over nested fields. Please file an
152- /// issue to discuss a solution to this.
153- pub fn stat_expression ( & self , stat : Stat , catalog : & dyn StatsCatalog ) -> Option < Expression > {
154- self . scalar_fn ( ) . stat_expression ( self , stat, catalog)
155- }
156-
157- /// Returns an expression representing the zoned maximum statistic, if available.
158- pub fn stat_min ( & self , catalog : & dyn StatsCatalog ) -> Option < Expression > {
159- self . stat_expression ( Stat :: Min , catalog)
160- }
161-
162- /// Returns an expression representing the zoned maximum statistic, if available.
163- pub fn stat_max ( & self , catalog : & dyn StatsCatalog ) -> Option < Expression > {
164- self . stat_expression ( Stat :: Max , catalog)
165- }
166-
167143 /// Format the expression as a compact string.
168144 ///
169145 /// Since this is a recursive formatter, it is exposed on the public Expression type.
0 commit comments