Skip to content

Commit

Permalink
fix: respect feature flags for geo function (#4836)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 authored Oct 16, 2024
1 parent 176f2df commit c231eee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/function/src/scalars/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
);
}
}

0 comments on commit c231eee

Please sign in to comment.