diff --git a/src/common/function/src/scalars/aggregate.rs b/src/common/function/src/scalars/aggregate.rs index f7ce316b6c15..08edf435682c 100644 --- a/src/common/function/src/scalars/aggregate.rs +++ b/src/common/function/src/scalars/aggregate.rs @@ -31,7 +31,6 @@ pub use polyval::PolyvalAccumulatorCreator; pub use scipy_stats_norm_cdf::ScipyStatsNormCdfAccumulatorCreator; pub use scipy_stats_norm_pdf::ScipyStatsNormPdfAccumulatorCreator; -use super::geo::encoding::JsonPathEncodeFunctionCreator; use crate::function_registry::FunctionRegistry; /// A function creates `AggregateFunctionCreator`. @@ -93,6 +92,11 @@ impl AggregateFunctions { register_aggr_func!("scipystatsnormcdf", 2, ScipyStatsNormCdfAccumulatorCreator); register_aggr_func!("scipystatsnormpdf", 2, ScipyStatsNormPdfAccumulatorCreator); - register_aggr_func!("json_encode_path", 3, JsonPathEncodeFunctionCreator); + #[cfg(feature = "geo")] + register_aggr_func!( + "json_encode_path", + 3, + super::geo::encoding::JsonPathEncodeFunctionCreator + ); } }