-
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(ingestion/teradata): teradata profiling fix for pooling #12507
base: master
Are you sure you want to change the base?
fix(ingestion/teradata): teradata profiling fix for pooling #12507
Conversation
Teradata sqlalchemy connector does not support max_overflow. replaced with poolclass=QueuePool.
Codecov ReportAttention: Patch coverage is
❌ 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.
... and 35 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -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): |
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.
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 |
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.
can you add some comments explaining the logic here?
also we have similar logic
sql_config.options.setdefault( |
Checklist
Teradata sqlalchemy connector does not support max_overflow. replaced with poolclass=QueuePool.