apache / apache/druid

Automatic AggregatorFactory tests

Open
#7,329 3 comments 0 reactions 0 assignees View on GitHub
Area - Automation/Static Analysis Area - Testing
Dominant language
Java
Stars
14.1k
Forks
3.8k
Avg merge
2d 58m
Merged PRs (30d)
233

Description

Would be nice to be able to automatically recognize new `AggregatorFactory` implementations in the project and run some automatic tests, such as that [their comparators accept nulls](https://github.com/apache/incubator-druid/issues/5812), `getCombiningFactory().getCombiningFactory()` equals to `getCombiningFactory()`, etc.

Contributor guide

Open the contributing guide

Research direction

Start by locating the AggregatorFactory interface, its implementations, and existing aggregator tests in the Druid repository. Determine how implementations can be discovered automatically, then define tests for comparator null handling and getCombiningFactory() idempotence. Done means the automatic suite covers new implementations and verifies these properties.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.