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

fix the column merging during graph traversal and concat selector #353

Merged
merged 4 commits into from
Jun 30, 2023

Conversation

jperez999
Copy link
Collaborator

This PR fixes graph traversal column merging. This is to allow for retreival of root columns and support overlapping column usage. The new behavior is to return whatever the last node of the graph is requiring for a target column. We also fixed the concat column op selector computation logic. Parents + dependencies were overriding input schema columns unnecessarily. That is only required when propagating column groups.

@jperez999 jperez999 added the bug Something isn't working label Jun 29, 2023
@jperez999 jperez999 added this to the Merlin 23.07 milestone Jun 29, 2023
@jperez999 jperez999 requested a review from karlhigley June 29, 2023 18:26
@jperez999 jperez999 self-assigned this Jun 29, 2023
@@ -95,3 +98,42 @@ def test_subgraph_with_summed_subgraphs():
assert post_len == pre_len
assert iter_len == post_len
assert iter_len == pre_len


def test_selector_concat_parents():
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this tests that an overlapping column name prefers the version from the right-hand side. Not quite sure how to distill that into a good test name though...test_concat_prefers_rhs?

@github-actions
Copy link

Documentation preview

https://nvidia-merlin.github.io/core/review/pr-353

@karlhigley karlhigley self-requested a review June 29, 2023 19:29
@karlhigley
Copy link
Contributor

It looks like this change breaks a few tests in NVTabular that probably actually are related to this change

@jperez999 jperez999 merged commit 841db77 into NVIDIA-Merlin:main Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants