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
[MAINTENANCE] Placing AWS RedShift Imports Under Compatibility Pattern #8205
Conversation
…ink/update_not_imported_mechanism_to_use_scoped_compatibility_modules_instead-2023_06_28-50
✅ Deploy Preview for niobium-lead-7998 canceled.
|
…ink/update_not_imported_mechanism_to_use_scoped_compatibility_modules_instead-2023_06_28-50
…ink/update_not_imported_mechanism_to_use_scoped_compatibility_modules_instead-2023_06_28-50
else: | ||
pass |
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.
nit (non-blocking): I don't think the else pass
is required
else: | |
pass |
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.
@TrangPham Great catch -- deleted. Thanks!
try: | ||
import sqlalchemy_redshift | ||
except ImportError: | ||
sqlalchemy_redshift = AWS_NOT_IMPORTED |
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 within the same file is fine. Perhaps a different error message would be better as to not tell user to install something they may not require
sqlalchemy_redshift = AWS_NOT_IMPORTED | |
sqlalchemy_redshift = NotImported( | |
"Redshift connection components are not installed, please 'pip install sqlalchemy_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.
@TrangPham Different message created -- thanks!
126fa3c
to
a191d06
Compare
…e_not_imported_mechanism_to_use_scoped_compatibility_modules_instead-2023_06_28-50
…e_not_imported_mechanism_to_use_scoped_compatibility_modules_instead-2023_06_28-50
Scope
sqlalchemy_redshift
, they are placed under the established "Compatibility" coding pattern.Remarks
Description of PR changes above includes a link to an existing GitHub issue
PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
Code is linted
Appropriate tests and docs have been updated
For more details, see our Contribution Checklist, Coding style guide, and Documentation style guide.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!