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) - Remove pg_user table from metadata queries #7815

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

treff7es
Copy link
Contributor

  • Removing the need for pg_user table as it needed additional permission which did not need before

  • Fixing a lineage query which was broken on newer redshift version

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

…ion which did not need before

- Fixing a lineage query which was broken on newer redshift version
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.

Would like to remove the commented out lines altogether for cleanliness, unless there's a reason to keep them around. One main question, but this seems safe enough that I'm happy to approve now

schema_option,
NULL::varchar(255) as external_database
FROM SVV_REDSHIFT_SCHEMAS as s
inner join pg_catalog.pg_user_info as i on i.usesysid = s.schema_owner
-- inner join pg_catalog.pg_user_info as i on i.usesysid = s.schema_owner
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just delete this line and other commented out lines? Also, how come we need schema_owner_name at all? Could we just remove it?

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Apr 13, 2023
@jjoyce0510 jjoyce0510 merged commit 4ec280e into datahub-project:master Apr 13, 2023
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.

None yet

4 participants