Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheriting ephemeral models' deps for lineage. #1677

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

elongl
Copy link
Member

@elongl elongl commented Aug 20, 2024

No description provided.

Copy link

linear bot commented Aug 20, 2024

Copy link
Contributor

👋 @elongl
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@elongl elongl force-pushed the ele-3555-model-ephemeral-models-in-lineage branch 3 times, most recently from 97b6263 to 84da0c7 Compare August 20, 2024 12:13
json.loads(dep_node["depends_on_nodes"])
if dep_node["depends_on_nodes"]
else []
)
Copy link
Collaborator

@haritamar haritamar Aug 20, 2024

Choose a reason for hiding this comment

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

This doesn't handle the case where dep_node["depends_on_nodes"] by itself contains ephemeral nodes.

Something I can suggest (other than making this function recursive) is to first sort by dependencies (toposort is a good library) and then handle nodes in reverse order.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also - new_dep_ids may contain duplicates, probably better to make it a set

@elongl elongl force-pushed the ele-3555-model-ephemeral-models-in-lineage branch 2 times, most recently from 24f2b3d to 92d88bf Compare August 20, 2024 14:07
@elongl elongl force-pushed the ele-3555-model-ephemeral-models-in-lineage branch from 92d88bf to 55d9196 Compare August 20, 2024 14:14
@elongl elongl merged commit f4b5e01 into master Aug 20, 2024
3 checks passed
@elongl elongl deleted the ele-3555-model-ephemeral-models-in-lineage branch August 20, 2024 14:44
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