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/redshift): patch instead of replace redshift custom properties #9293

Conversation

ethan-cartwright
Copy link
Contributor

@ethan-cartwright ethan-cartwright commented Nov 22, 2023

Testing

  • added tests
  • tested this locally to ensure it works for:
    • custom properties
    • that table descriptions and other set methods function as expected
    • the patch_custom_properties flag works as expected

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). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Nov 22, 2023
@ethan-cartwright ethan-cartwright changed the title Patch instead of replace redshift custom properties fix:patch instead of replace redshift custom properties Nov 22, 2023
@ethan-cartwright ethan-cartwright changed the title fix:patch instead of replace redshift custom properties fix: patch instead of replace redshift custom properties Nov 22, 2023
@ethan-cartwright ethan-cartwright changed the title fix: patch instead of replace redshift custom properties fix(ingest/redshift): patch instead of replace redshift custom properties Nov 22, 2023
Copy link
Collaborator

@asikowitz asikowitz left a 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

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.

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
Copy link
Collaborator

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
Copy link
Collaborator

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

@hsheth2 hsheth2 merged commit 7540e64 into datahub-project:master Mar 11, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants