Skip to content

Conversation

rozza
Copy link
Member

@rozza rozza commented Apr 30, 2025

It uses the $bucketAuto aggregation stage and works for compound keys as well as single keys.

SPARK-444

It uses the $bucketAuto aggregation stage and works for compound keys
as well as single keys.

SPARK-444
@rozza rozza requested review from a team and NathanQingyangXu and removed request for a team April 30, 2025 10:19
@rozza
Copy link
Member Author

rozza commented Apr 30, 2025

@NathanQingyangXu no need to download the code / run locally, you can rely on evergreen.

@rozza rozza closed this Apr 30, 2025
@rozza rozza reopened this Apr 30, 2025
@rozza
Copy link
Member Author

rozza commented Apr 30, 2025

Reopened PR - as no partitioners will support duplicated compound key values, I have added a warning for users if they have an older MongoDB version.

Copy link

@NathanQingyangXu NathanQingyangXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add two initial comments for you to consider; will review more thoroughly afterwards

@rozza rozza requested a review from NathanQingyangXu April 30, 2025 15:05
Copy link

@NathanQingyangXu NathanQingyangXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great! I left some minor comments for you to consider.

Added new test cases.
Although strangely nested compound keys work pre 7.0, its better to hard fail.
@rozza rozza requested a review from NathanQingyangXu April 30, 2025 15:45
Copy link

@NathanQingyangXu NathanQingyangXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rozza rozza merged commit 3e4ad0c into mongodb:main Apr 30, 2025
24 checks passed
@rozza rozza deleted the SPARK-444 branch April 30, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants