-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Warn user about unused replace parameter in insert_rows (OracleHook) #39408
Conversation
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.
LGTM
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.
LGTM
67ece44
to
8c36ec2
Compare
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.
LGTM
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
…acleHook class The replace boolean parameter claims to replace rows instead of insert, but this functionality has not been implemented and the documentation claims it works. This can be misleading to any user of this class. Furthermore, the parameter isn't even being used anywhere in this function. In this commit, I removed the parameter to prevent any confusion amongst the users of this class.
Re-introduced the replace boolean parameter. Added a warning when the user sets the replace parameter to True. Updated the docstring to let the user know that the replace boolean parameter does nothing.
Updated the formatting of warning to increase readability.
Switched back to original description of replace parameter with a warning of no current implementation
Added a format fix to pass static format testing
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
…pache#39408) * Remove unused replace boolean parameter in insert_rows function of OracleHook class The replace boolean parameter claims to replace rows instead of insert, but this functionality has not been implemented and the documentation claims it works. This can be misleading to any user of this class. Furthermore, the parameter isn't even being used anywhere in this function. In this commit, I removed the parameter to prevent any confusion amongst the users of this class. * Clarified usage of replace parameter in insert_rows Re-introduced the replace boolean parameter. Added a warning when the user sets the replace parameter to True. Updated the docstring to let the user know that the replace boolean parameter does nothing. * Updated formatting of warning in insert_rows Updated the formatting of warning to increase readability. * Update oracle.py Switched back to original description of replace parameter with a warning of no current implementation * Format Fix Added a format fix to pass static format testing
Following changes made to OracleHook class.
The replace boolean parameter claims to replace rows instead of insert, but this functionality has not been implemented and the documentation claims it works. This can be misleading to any user of this class. Furthermore, the parameter isn't even being used anywhere in this function.
In this change, I removed the unused 'replace' parameter in both the function and the docs to prevent any confusion amongst the users of this class.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.