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(ingest/transformer): generate ownership aspect from handle_end_of_stream #9720

Conversation

sid-acryl
Copy link
Contributor

@sid-acryl sid-acryl commented Jan 25, 2024

This fixes a bug that would cause the existing tags aspect to be overwritten when using ExtractOwnersFromTagsTransformer

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 25, 2024
transformer = ExtractOwnersFromTagsTransformer.create(
config,
PipelineContext(run_id="test"),
)
transformed = list(

list(
transformer.transform(
[
RecordEnvelope(dataset, metadata={}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we put an end of stream record in here, it should do everything right?

I don't think our tests should be calling handle_end_of_stream

…com:sid-acryl/datahub-fork into master+CUS-1183-extract_ownership_from_tags
@hsheth2 hsheth2 added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Jan 31, 2024
@hsheth2 hsheth2 changed the title fix(transformer): generate ownership aspect from handle_end_of_stream fix(ingest/transformer): generate ownership aspect from handle_end_of_stream Jan 31, 2024
@hsheth2 hsheth2 merged commit 874c683 into datahub-project:master Jan 31, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants