-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[FEATURE] Add redshift datasource api decorator. #11097
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
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## develop #11097 +/- ##
===========================================
- Coverage 81.12% 79.19% -1.93%
===========================================
Files 499 499
Lines 41330 41332 +2
===========================================
- Hits 33528 32733 -795
- Misses 7802 8599 +797 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
some suggestions/questions about the copy
@@ -1,6 +1,6 @@ | |||
{ | |||
"title": "RedshiftDatasource", | |||
"description": "Adds a redshift datasource to the data context using psycopg2.\n\nArgs:\n name: The name of this redshift datasource.\n connection_string: The SQLAlchemy connection string used to connect to the redshift\n database. This will use a redshift with psycopg2. For example:\n \"redshift+psycopg2://[email protected]:5439/database\"\n assets: An optional dictionary whose keys are TableAsset or QueryAsset names and whose\n values are TableAsset or QueryAsset objects.", | |||
"description": "--Public API--Adds a redshift datasource to the data context using psycopg2.\n\nArgs:\n name: The name of this redshift datasource.\n connection_string: The SQLAlchemy connection string used to connect to the redshift\n database. This will use a redshift with psycopg2. For example:\n \"redshift+psycopg2://[email protected]:5439/database\"\n assets: An optional dictionary whose keys are TableAsset or QueryAsset names and whose\n values are TableAsset or QueryAsset objects.", |
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.
This is maybe the wrong place to apply these changes (looks like this is generated json?) but here's a suggestion that does a few things:
- capitalizes Redshift as a proper noun
- removes what appears to be some stray words (when compared to the similar page for postgres
"description": "--Public API--Adds a redshift datasource to the data context using psycopg2.\n\nArgs:\n name: The name of this redshift datasource.\n connection_string: The SQLAlchemy connection string used to connect to the redshift\n database. This will use a redshift with psycopg2. For example:\n \"redshift+psycopg2://[email protected]:5439/database\"\n assets: An optional dictionary whose keys are TableAsset or QueryAsset names and whose\n values are TableAsset or QueryAsset objects.", | |
"description": "--Public API--Adds a Redshift datasource to the data context using psycopg2.\n\nArgs:\n name: The name of this Redshift datasource.\n connection_string: The SQLAlchemy connection string used to connect to the Redshift\n database. For example:\n \"redshift+psycopg2://[email protected]:5439/database\"\n assets: An optional dictionary whose keys are TableAsset or QueryAsset names and whose\n values are TableAsset or QueryAsset objects.", |
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 wanted to double check the connection string format here since it's different that what I'm using in my docs PR based on feedback on my docs plan
This PR has
redshift+psycopg2://[email protected]:5439/database
My PR has
redshift+psycopg2://<USER_NAME>:<PASSWORD>@<HOST>:<PORT>/<DATABASE>?sslmode=<SSLMODE>
notable differences are:
- whether or not password is included
- whether or not SSL mode is included
Should the discrepancy between PRs be resolved? if yes, in what direction?
invoke lint
(usesruff format
+ruff check
)For more information about contributing, visit our community resources.
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!