Skip to content

Add $avg accumulator tests#190

Open
alinaliBQ wants to merge 9 commits into
documentdb:mainfrom
alinaliBQ:avg
Open

Add $avg accumulator tests#190
alinaliBQ wants to merge 9 commits into
documentdb:mainfrom
alinaliBQ:avg

Conversation

@alinaliBQ
Copy link
Copy Markdown
Contributor

This change adds tests for the $avg accumulator operator.

Add stage operator tests for $avg. Tests database $avg behavior, output collection, syntax, and expected errors.
Integration tests are in documentdb_tests/compatibility/tests/core/operator/accumulators/test_accumulators_avg_integration.py

alinaliBQ added 9 commits May 14, 2026 16:47
used tests from local generate and Daniel F

Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
@alinaliBQ alinaliBQ marked this pull request as ready for review May 15, 2026 22:02
@alinaliBQ alinaliBQ requested a review from a team as a code owner May 15, 2026 22:02
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 15, 2026
@documentdb-triage-tool
Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: compatibility test, enhancement
Project fields suggested: Component test-coverage · Priority P2 · Effort XL · Status Needs Review
Confidence: 0.92 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (2914+0 LOC, 14 files); LLM: Adds new integration test coverage for the $avg accumulator operator under the compatibility tests path, a meaningful but non-blocking functional improvement.

If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility test Compatibility test related enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant