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(ingestion/teradata): teradata profiling fix for pooling #12507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brock-acryl
Copy link

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

Teradata sqlalchemy connector does not support max_overflow. replaced with poolclass=QueuePool.

Teradata sqlalchemy connector does not support max_overflow. replaced with poolclass=QueuePool.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 30, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 30, 2025
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...stion/src/datahub/ingestion/source/sql/teradata.py 0.00% 6 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Files with missing lines Coverage Δ
...stion/src/datahub/ingestion/source/sql/teradata.py 0.00% <0.00%> (ø)

... and 35 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a155470...5a6266f. Read the comment docs.

@@ -286,7 +287,7 @@ def grouper(fk_row):

# TODO: Check if there's a better way
fk_dicts = list()
for constraint_info, constraint_cols in groupby_unsorted(res, grouper):
for constraint_info, constraint_cols in groupby(res, grouper):
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did this change?

# replace pooling with pooling for teradata
if "max_overflow" in self.config.options:
self.config.options.pop("max_overflow")
self.config.options["poolclass"] = QueuePool
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add some comments explaining the logic here?

also we have similar logic

that appears to be getting undone - but ideally we never add max_overflow in the first place

@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Jan 31, 2025
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 pending-submitter-response Issue/request has been reviewed but requires a response from the submitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants