Skip to content

JAVA-5829: Add $concatArrays and $setUnion accumulators #1680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ranzyblessings
Copy link

@ranzyblessings ranzyblessings commented Apr 13, 2025

  • Added $concatArrays and $setUnion methods to Accumulators.java for MongoDB 8.1 aggregation pipelines, producing correct BSON for array concatenation and union.
  • Implemented Kotlin extensions in Accumulators.kt, leveraging KProperty for idiomatic usage.
  • Updated AggregatesTest.kt with tests validating query construction.
  • Fixed formatting in CONTRIBUTING.md for clarity.

Assistance Required
Integration tests were omitted due to uncertainty about the appropriate test class. If needed to validate server-side behavior, please specify the target class, and I’ll implement them.

…xtensions

Added $concatArrays and $setUnion methods to Accumulators.java for MongoDB 8.1
aggregation pipelines, producing correct BSON for array concatenation and union.
Implemented Kotlin extensions in Accumulators.kt, leveraging KProperty for idiomatic
usage. Updated AggregatesTest.kt with tests validating query construction. Fixed
formatting in CONTRIBUTING.md for clarity.

Signed-off-by: Ranzy Blessings <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants