Skip to main content

uqa_engine/
functions.rs

1//
2// Unified Query Algebra
3//
4// Copyright (c) 2023-2026 Cognica, Inc.
5//
6
7//! Register execution-owned extension contracts in the engine.
8
9pub use uqa_execution::functions::*;
10
11impl uqa_sql::plan::AggregateClassifier for crate::Engine {
12    fn is_registered_aggregate(&self, name: &str) -> bool {
13        self.has_registered_aggregate_function(name)
14    }
15}
16
17impl uqa_execution::functions::AggregateFunctionRegistry for crate::Engine {
18    fn registered_aggregate_function(
19        &self,
20        name: &str,
21    ) -> Option<std::sync::Arc<dyn SQLAggregateFactory>> {
22        self.registered_aggregate_function(name)
23    }
24}