Skip to content

Docs Request: "Features" page about the dy.Collection type #162

Open

Description

@DeflateAwning

Now that there's a "Features" section in the docs, it might be helpful to cover the dy.Collection class in there, with a focus more on "what are some common workflows" (as opposed to the existing example in "Real-world Example", and the noisy API documentation generated for that class).

Some question to think about that might be relevant:

  1. How do you define foreign key relationships in a dy.Collection data model? Is it done automatically by column name? Is there a way to do it manually?
  2. How do you specify the cardinality of join validations (e.g., 1:1, 1:m, etc.).
  3. How do you specify whether nulls are treated as a "value" in the join, vs. the absense of data? SQL always takes the former approach, but Polars is nice in that it lets you select whether null is a value itself or a marker for missing/unknown data (e.g., by its nulls_equal= argument).

Activity

  1. DeflateAwning commented on Apr 7, 2026

    @DeflateAwning
    ContributorAuthor

    Why just close it? Is that feature intended to remain undocumented?

  2. borchero commented on Apr 7, 2026

    @borchero
    Member

    DeflateAwning unsure what happened here tbh, I did not even have Linear open at that point, sorry

  3. DeflateAwning commented on Apr 8, 2026

    @DeflateAwning
    ContributorAuthor

    No worries at all, thanks! Didn't see that it was a bot that closed it and was very confused. Appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions