-
Notifications
You must be signed in to change notification settings - Fork 3k
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/redshift): patch instead of replace redshift custom properties #9293
fix(ingest/redshift): patch instead of replace redshift custom properties #9293
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a quick glance, seems like we're no longer setting some properties we should be setting
metadata-ingestion/src/datahub/ingestion/source/redshift/redshift.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/redshift/redshift.py
Outdated
Show resolved
Hide resolved
…e, created, lastModified
metadata-ingestion/src/datahub/ingestion/source/redshift/redshift.py
Outdated
Show resolved
Hide resolved
….com/ethan-cartwright/datahub into add_patch_custom_properties_redshift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm once the two small tweaks are made, and assuming the patch changes have been tested against a live datahub system
) | ||
else: | ||
if custom_properties: | ||
dataset_properties.customProperties = custom_properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is redundant, since we set it above
from datahub.ingestion.source.redshift.redshift_schema import RedshiftTable | ||
|
||
|
||
@pytest.fixture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this probably should be a helper method instead of a fixture
….com/ethan-cartwright/datahub into add_patch_custom_properties_redshift
Testing
set
methods function as expectedpatch_custom_properties
flag works as expectedChecklist