Skip to content

migrate metadata operators to core #344

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

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

jperez999
Copy link
Collaborator

This PR migrates all the add metadata operators to core. This will allow them to be used in other parts of merlin, like systems. These are general operators that manipulate schemas. They are not required to be located in the nvtabular repo. By moving these operators to core, we remove the nvtabular import requirement for these ops.

@jperez999 jperez999 added the chore Maintenance for the repository label Jun 9, 2023
@jperez999 jperez999 added this to the Merlin 23.06 milestone Jun 9, 2023
@jperez999 jperez999 requested a review from oliverholworthy June 9, 2023 22:03
@jperez999 jperez999 self-assigned this Jun 9, 2023
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

Documentation preview

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

self.tags = tags or []
self.properties = properties or {}

def transform(
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be the default implementation of transform in the BaseOperator. Could this be omitted or, are we adding this here as part of a convention of adding a transform for every operator?

@oliverholworthy
Copy link
Member

Should we add these to merlin/dag/ops/__init__.py like the other ops we have in Core? so that they can be imported from merlin.dag.ops instead of requiring an import of this add_metadata module?

@jperez999 jperez999 merged commit c5facda into NVIDIA-Merlin:main Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance for the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants