-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Move all SQL classes to common-sql provider #24836
Move all SQL classes to common-sql provider #24836
Conversation
0024545
to
8fc883d
Compare
cc: @denimalpaca - this one implements more complete version of #24790 (some tests were failiing) - it also moves the |
afa4106
to
7d35f5d
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.
There should be changes to pandas extra? (as this extra was created for DBApiHook)
The common.sql provider should be depended on the pandas extra isn't it?
454d756
to
6ae722e
Compare
I think extra must stay (this is optional and backwards-compatibility if it is changed/removed). But yeah - |
6ae722e
to
6b2b5ab
Compare
Added pandas to |
6b2b5ab
to
ffbffbd
Compare
I also removed the "try/import" around pandas import in "DBApiHook now - because common.sql has now pandas as "hard" dependency (not an extra), so it will be installed for sure. |
That made me think... maybe we indeed want to contiue using "pandas" as extras even for common-sql ? Common-sql is now "dependency" of airlfow, and it makes panda transitive but non-optional dependency of airlfow. I think I will revert the try/import change and turn pandas on comon-sql into extra. |
ffbffbd
to
9c2043a
Compare
Yeah. much better. I turned pandas into common-sql[pandas] extra |
9c2043a
to
dda2ebd
Compare
This one should be green :) |
Is that a good idea? The majority of the code (and operators) don't make use of Pandas. Edit: Oh mis-read the conversation. Yes to keeping it as an optional extra. |
b57b8cf
to
51314de
Compare
4becab9
to
02c4a82
Compare
The DBApiHook, SQLSensor are now part of the common.sql provider.
02c4a82
to
ecb4b49
Compare
The dependencies.json was replaced by provider_dependencies.json in generated folder in apache#24836 but it missed deletion of the original file. This PR removes the old file.
The dependencies.json was replaced by provider_dependencies.json in generated folder in #24836 but it missed deletion of the original file. This PR removes the old file.
Previously, in apache#24836 we moved Hooks and added some new operators to the common.sql package. Now we are salso moving the operators and sensors to common.sql.
Previously, in #24836 we moved Hooks and added some new operators to the common.sql package. Now we are salso moving the operators and sensors to common.sql.
Previously, in #24836 we moved Hooks and added some new operators to the common.sql package. Now we are salso moving the operators and sensors to common.sql.
Previously, in #24836 we moved Hooks and added some new operators to the common.sql package. Now we are salso moving the operators and sensors to common.sql.
The DBApiHook, SQLSensor are now part of the common.sql provider.
^ 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
, in newsfragments.