-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Deprecate hql parameters and synchronize DBApiHook method APIs #25299
Deprecate hql parameters and synchronize DBApiHook method APIs #25299
Conversation
This also simplifies and removes some MyPy Hacks with "overloads" :) |
d7f4831
to
d9dffc8
Compare
d9dffc8
to
83c6726
Compare
83c6726
to
fd331e0
Compare
7b851fc
to
b2a3329
Compare
b2a3329
to
3d23031
Compare
All parameters updated @kazanzhy :) |
8567e08
to
40c94f9
Compare
Should be green now. |
Various providers deriving from DbApi had some variations in some methods that were derived from the common DbApi Hook. Mostly they were about extra parameters added and hql parameter used instead of sql. This prevents from really "common" approach in DbApiHook as some common sql operators rely on signatures being the same. This introduced breaking changes in a few providers - but those breaking changes are easy to fix and most have already been deprecated.
40c94f9
to
7a98394
Compare
Should be merged after #25338 (this PR incorporates change that should be separated). |
(now it should be green :) ) |
Green :) |
@@ -143,7 +143,7 @@ function testing::setup_docker_compose_backend() { | |||
# so we need to mount an external volume for its db location | |||
# the external db must allow for parallel testing so TEST_TYPE | |||
# is added to the volume name | |||
export MSSQL_DATA_VOLUME="${HOME}/tmp-mssql-volume-${TEST_TYPE}-${MSSQL_VERSION}" | |||
export MSSQL_DATA_VOLUME="${HOME}/tmp-mssql-volume-${TEST_TYPE/\[*\]/}-${MSSQL_VERSION}" |
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 already merged in main via #25338
Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
Woohooo! |
Various providers deriving from DbApi had some variations in some
methods that were derived from the common DbApi Hook. Mostly they
were about extra parameters added and hql parameter used instead of
sql. This prevents from really "common" approach in DbApiHook as
some common sql operators rely on signatures being the same.
This introduced breaking changes in a few providers - but those
breaking changes are easy to fix and most have already been
deprecated.
I also had to make sure all types are correct (hence cloud_sql typing fixes).
^ 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.