-
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
Adding ArangoDB Provider #22548
Adding ArangoDB Provider #22548
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.
Over all LGTM
nice job @pateash
:param arangodb_conn_id: Reference to :ref:`ArangoDB connection id <howto/connection:arangodb>`. | ||
""" | ||
|
||
template_fields: Sequence[str] = ('sql',) |
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.
Should we add also template_ext
?
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.
yeah, make sense
added
:param arangodb_db: Target ArangoDB name. | ||
""" | ||
|
||
template_fields: Sequence[str] = ('sql',) |
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.
Should we add also template_ext
?
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.
added
Can you fix static checks please. |
@potiuk can you take a look at the test failure? I don't recall that when adding a new provider we need to edit the CI script |
Not everything in providers has to be me :) - this test was added by @mik-laj actually: 621d17b It looks like for some reason prodcution image produced in this build contains many more providers than it should |
Yeah: seems that for some reason it contains all providers:
|
This is VERY strange as it seems that when the image was built, it actually used only a small subset (as expected):
|
Let me rebase and see it happening again :) |
I don't recall we had such issue when GitHub provider was added (and it was after 621d17b ) |
Me neither. It basicallly SHOUD NOT happen :D. Yet it seems it did again |
OK. I know what causes it but I do not know why it happens yet. When PROD build image is prepared we prepare "airflow" package so that it can be installed there from latest sources. But for SOME reason, it contains "all" providers as well. not only airflow. I do not know where it came from yet. But It proves the tests from @mik-laj are useful to catch it. |
I actually think it could come from the new setuptools release https://pypi.org/project/setuptools/61.2.0/ |
Still puzzled :) but I am getting closer to solve it |
thanks @potiuk. |
voila 🥳, |
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 :) - @eladkal ?
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
I'll take a look later today |
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
@@ -256,6 +256,8 @@ Those are extras that add dependencies needed for integration with other softwar | |||
+---------------------+-----------------------------------------------------+-------------------------------------------+ | |||
| trino | ``pip install 'apache-airflow[trino]'`` | All Trino related operators & hooks | | |||
+---------------------+-----------------------------------------------------+-------------------------------------------+ | |||
| arangodb | ``pip install 'apache-airflow[arangodb]'`` | ArangoDB operators, sensors and hook | |
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 this list is sorted alphabetically?
🎉 🎉 🎉 🎉 🎉 🎉 🎉 |
closes: #17778
Description
Adding ArangoDB provider based on Python SDK https://github.com/ArangoDB-Community/python-arango
Users can create their own custom operators leveraging the ArangoDBHook directly
or building their operator on AQLOperator by providing result_processor method,
Sensor can be implemented by SQL