mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-13 15:32:36 +00:00
refactor(function): rename uadf_impl to udf_impl in aggregate functions (#9482)
refactor: rename uadf_impl to udf_impl in aggregate functions Signed-off-by: fengyue-xve <1759519137@qq.com>
This commit is contained in:
@@ -21,7 +21,7 @@ pub(crate) struct GeoFunction;
|
||||
|
||||
impl GeoFunction {
|
||||
pub fn register(registry: &FunctionRegistry) {
|
||||
registry.register_aggr(encoding::JsonEncodePathAccumulator::uadf_impl());
|
||||
registry.register_aggr(geo_path::GeoPathAccumulator::uadf_impl());
|
||||
registry.register_aggr(encoding::JsonEncodePathAccumulator::udf_impl());
|
||||
registry.register_aggr(geo_path::GeoPathAccumulator::udf_impl());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ impl JsonEncodePathAccumulator {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn uadf_impl() -> AggregateUDF {
|
||||
pub fn udf_impl() -> AggregateUDF {
|
||||
create_udaf(
|
||||
JSON_ENCODE_PATH_NAME,
|
||||
// Input types: lat, lng, timestamp
|
||||
|
||||
@@ -47,7 +47,7 @@ impl GeoPathAccumulator {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn uadf_impl() -> AggregateUDF {
|
||||
pub fn udf_impl() -> AggregateUDF {
|
||||
create_udaf(
|
||||
GEO_PATH_NAME,
|
||||
// Input types: lat, lng, timestamp
|
||||
|
||||
@@ -25,8 +25,8 @@ pub(crate) struct VectorFunction;
|
||||
|
||||
impl VectorFunction {
|
||||
pub fn register(registry: &FunctionRegistry) {
|
||||
registry.register_aggr(VectorSum::uadf_impl());
|
||||
registry.register_aggr(VectorProduct::uadf_impl());
|
||||
registry.register_aggr(VectorAvg::uadf_impl());
|
||||
registry.register_aggr(VectorSum::udf_impl());
|
||||
registry.register_aggr(VectorProduct::udf_impl());
|
||||
registry.register_aggr(VectorAvg::udf_impl());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ pub struct VectorAvg {
|
||||
|
||||
impl VectorAvg {
|
||||
/// Create a new `AggregateUDF` for the `vec_avg` aggregate function.
|
||||
pub fn uadf_impl() -> AggregateUDF {
|
||||
pub fn udf_impl() -> AggregateUDF {
|
||||
let signature = Signature::one_of(
|
||||
vec![
|
||||
TypeSignature::Exact(vec![DataType::Utf8]),
|
||||
|
||||
@@ -39,7 +39,7 @@ pub struct VectorProduct {
|
||||
|
||||
impl VectorProduct {
|
||||
/// Create a new `AggregateUDF` for the `vec_product` aggregate function.
|
||||
pub fn uadf_impl() -> AggregateUDF {
|
||||
pub fn udf_impl() -> AggregateUDF {
|
||||
let signature = Signature::one_of(
|
||||
vec![
|
||||
TypeSignature::Exact(vec![DataType::Utf8]),
|
||||
|
||||
@@ -39,7 +39,7 @@ pub struct VectorSum {
|
||||
|
||||
impl VectorSum {
|
||||
/// Create a new `AggregateUDF` for the `vec_sum` aggregate function.
|
||||
pub fn uadf_impl() -> AggregateUDF {
|
||||
pub fn udf_impl() -> AggregateUDF {
|
||||
let signature = Signature::one_of(
|
||||
vec![
|
||||
TypeSignature::Exact(vec![DataType::Utf8]),
|
||||
|
||||
Reference in New Issue
Block a user