Skip to content

Conversation

@RakeshBobba03
Copy link
Collaborator

#1402: Updated target_is_sorted_by to normalize the within parameter to an ordered list, then reuse the existing sort-and-group flow so it handles one or many grouping keys without materializing the entire dataset. Adjusted the post-group alignment to drop levels only when the grouped result is multi-indexed, keeping Pandas and Dask behavior in sync. Extended the operator schema and reference guide to document the list form, and added positive/negative multi-key tests for both PandasDataset and DaskDataset to cover the regression that affected rule CG0546.

@RakeshBobba03 RakeshBobba03 requested review from RamilCDISC, Copilot and gerrycampion and removed request for Copilot November 11, 2025 19:17
@RakeshBobba03 RakeshBobba03 marked this pull request as ready for review November 11, 2025 19:18
Copy link
Collaborator

@RamilCDISC RamilCDISC left a comment

Choose a reason for hiding this comment

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

The PR updates the 'within' to a list while also preserving the functionality of it being treated as string. This ensures no other rules that uses within as string break. The PR was validated by:

  1. Reviewing the PR for any unwanted code or comments.
  2. Reviewing the PR updated logic in context with AC.
  3. Ensuring all unit and regression tests pass.
  4. Ensuring all related testing has been updates.
  5. Ensuring new relevant testing has been added.
  6. Manual testing by running with positive dataset in dev editor.
  7. Manual testing by running negative dataset in dev editor.

@RamilCDISC RamilCDISC merged commit 06b354f into main Nov 13, 2025
11 checks passed
@RamilCDISC RamilCDISC deleted the 1402-CG0546-support-multi-key-param-update branch November 13, 2025 19:43
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.

4 participants