#9353·greptimedb

Rename uadf_impl to udf_impl in aggregate functions

Author: killme2008Created Sep 24, 2026Updated Sep 24, 2026
Labelsgood first issue

What type of enhancement is this?

Refactor

What does the enhancement do?

Five aggregate functions in common-function expose their AggregateUDF through a method misspelled as uadf_impl. The other aggregates in the same module use udf_impl (CountHash::udf_impl(), AvgAccumulator::state_udf_impl() / merge_udf_impl()), so rename these to udf_impl too.

Occurrences on main (10 in total):

  • src/common/function/src/aggrs/vector/sum.rs, vector/product.rs, vector/avg.rs: the definitions on VectorSum, VectorProduct, VectorAvg
  • src/common/function/src/aggrs/vector.rs: 3 callers
  • src/common/function/src/aggrs/geo/geo_path.rs, geo/encoding.rs: the definitions on GeoPathAccumulator, JsonEncodePathAccumulator
  • src/common/function/src/aggrs/geo.rs: 2 callers

git grep uadf_impl should return nothing afterwards, and cargo check -p common-function should pass. No behavior change.

The vector files are also touched by #9338; if it's still open, rebase after it merges.

Implementation challenges

No response