Skip to content

co: Is Ordered Subset Of - #449

Open
YetiGonk wants to merge 2 commits into
mainfrom
maximo/co-is-ordered-subset-of
Open

co: Is Ordered Subset Of#449
YetiGonk wants to merge 2 commits into
mainfrom
maximo/co-is-ordered-subset-of

Conversation

@YetiGonk

@YetiGonk YetiGonk commented Mar 3, 2026

Copy link
Copy Markdown

Check operator that checks if the given target array (column, list, or collection operation result) is an ordered subset of the comparator array.
Feel free to bash on my sql queries, they are definitely overkill.

@YetiGonk
YetiGonk requested a review from rich-verisian March 3, 2026 08:46
@YetiGonk YetiGonk self-assigned this Mar 3, 2026
@YetiGonk
YetiGonk requested a review from davidverisian March 3, 2026 11:49

@davidverisian davidverisian left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just 1 comment to address, then looks good.

if isinstance(self.validation_df, DaskDataset):
results = self.validation_df.apply(check_order, axis=1, meta=("check_order", bool))
results = self.validation_df.convert_to_series(results)
else:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should there also be a last case with a ValueError in case none of these match? That's how I remember it was done in some places like contains_all_operator.py

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh yeah! good catch, I'll add now.

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