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

feature(ingestion): Adding the concept of transformers #2411

Merged
merged 2 commits into from
Apr 18, 2021
Merged

feature(ingestion): Adding the concept of transformers #2411

merged 2 commits into from
Apr 18, 2021

Conversation

thomasplarsson
Copy link
Contributor

@thomasplarsson thomasplarsson commented Apr 16, 2021

Fixes: #2410

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

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

Looks pretty good - thanks for building this!

:return: the transformed records
"""
for transformer in self.transformers:
records = transformer.transform(records)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!


def report_record_written(self, record_envelope: RecordEnvelope) -> None:
super().report_record_written(record_envelope)
self.received_records.append(record_envelope)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pretty nifty way to test this

metadata-ingestion/README.md Outdated Show resolved Hide resolved
metadata-ingestion/README.md Show resolved Hide resolved
Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM!

@shirshanka shirshanka merged commit 7869a8f into datahub-project:master Apr 18, 2021
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.

Add transformation step to ingestion pipeline
3 participants