feat: Support members parameter in @dy.filter() to apply collection filters to specific members only#284
Draft
feat: Support members parameter in @dy.filter() to apply collection filters to specific members only#284
members parameter in @dy.filter() to apply collection filters to specific members only#284Conversation
…ction filters Co-authored-by: borchero <22455425+borchero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for filtering specific schemas in collection filter
feat: Support Feb 23, 2026
members parameter in @dy.filter() to apply collection filters to specific members only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Collection-level filters currently apply to all non-ignored members via the collection's common primary key. This makes it impossible to filter one member based on data from another (e.g., filter diagnoses using admission dates from invoices) without affecting all members.
Changes
@dy.filter(members=[...]): New optional parameter restricts a filter to specific members. The join key used is the common primary key of the specified members (enabling row-level filtering when a member has a superset primary key).CollectionMeta): Validates that specified members exist, are notignored_in_filters, and share a common primary key.filter()/is_valid()/validate(): Each method now evaluates per-filter applicability per member; non-applicable filters are skipped entirely (not reflected in failure info).matches(): Comparesmembersas sets in addition to filter logic.{"logic": ..., "members": ...}; oldLazyFrame-only format is still deserializable for backward compatibility.Example
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.