Skip to content

Commit 5349d09

Browse files
ahmadtfarhanpotiuk
andauthored
Create Apache TinkerPop provider (apache#47446)
* tests passed * narrow down CI * fix host * add drill for testing * add docker inspect * create a funtion * minor changes * change the inspect * add status condition * change host to zeros * rewrite the pipeline * push image and reuse * remove tag * rename tag * change to locally pushed image * add sha to image name * add sha to image name * add debug and login * change token name * change token name * remove login * remove login * remove login * move token to hight level * copy from ci * change to secrets * test workflow * test workflow * rerun on CI login * rerun on CI login * logout * revert logout * revert login * remove cleanup * readd cleanup * change docker pass * add login to action * move up * chage token * one job * one job * remove action * delete if condition * rename image * fix tar name * fix tar name * fix tar name * remove status * remove stdin * add logs and hostname * removed restart * add chmod * create entry sh * create entry sh * add status * remove failure * add user * revert back all ci yamls * revert back shell script * fix tinkerpop * change back to gremlin in the providers list * change docs * change docs * add conn_name_attr * move system test * change to cap * change to 1.0.0 * fix sh * removed serializer and some changes * fixing docs * update provider * change to 2.9.0 and add spell check * ran breeze release management * add doc strings * add asterisk * moved operators doc * fixed docs * fixed pyproject * minor change to docs * add conf.py * fixed docs * fix toml * changed to 2.10 * remove fab from tinkerpop * fix prov info * add close method * fix integration * change gremlin host * change gremlin host back * remove async * remove package * fix pyproject * fix test --------- Co-authored-by: Jarek Potiuk <[email protected]>
1 parent ba4398f commit 5349d09

File tree

80 files changed

+2064
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2064
-74
lines changed

.github/ISSUE_TEMPLATE/airflow_providers_bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ body:
4141
- apache-pig
4242
- apache-pinot
4343
- apache-spark
44+
- apache-tinkerpop
4445
- apprise
4546
- arangodb
4647
- asana

.github/boring-cyborg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ labelPRBasedOnFilePath:
7272
provider:apache-spark:
7373
- providers/apache/spark/**
7474

75+
provider:apache-tinkerpop:
76+
- providers/apache/tinkerpop/**
77+
7578
provider:apprise:
7679
- providers/apprise/**
7780

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ repos:
246246
name: Check that executables have shebang
247247
- id: check-xml
248248
name: Check XML files with xmllint
249+
exclude: >
250+
(?x)
251+
^scripts/ci/docker-compose/gremlin/.
249252
- id: trailing-whitespace
250253
name: Remove trailing whitespace at end of line
251254
exclude: ^airflow-core/docs/img/.*\.dot$|^dev/breeze/doc/images/output.*$
@@ -970,6 +973,7 @@ repos:
970973
exclude: >
971974
(?x)
972975
^scripts/ci/docker-compose/grafana/.|
976+
^scripts/ci/docker-compose/gremlin/.|
973977
^scripts/ci/docker-compose/.+-config\.ya?ml$
974978
require_serial: true
975979
additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'pyyaml>=6.0.2', 'requests==2.32.3', 'rich>=12.4.4']

airflow-core/docs/extra-packages-ref.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ custom bash/python providers).
198198
+---------------------+-----------------------------------------------------+------------------------------------------------+
199199
| apache-spark | ``pip install 'apache-airflow[apache-spark]'`` | All Spark related operators & hooks |
200200
+---------------------+-----------------------------------------------------+------------------------------------------------+
201+
| apache-tinkerpop | ``pip install apache-airflow[apache-tinkerpop]`` | Apache-tinkerpop hooks and operators |
202+
+---------------------+-----------------------------------------------------+------------------------------------------------+
201203
| apache-webhdfs | ``pip install 'apache-airflow[apache-webhdfs]'`` | HDFS hooks and operators |
202204
+---------------------+-----------------------------------------------------+------------------------------------------------+
203205

airflow-core/src/airflow/utils/db.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,15 @@ def create_default_connections(session: Session = NEW_SESSION):
352352
),
353353
session,
354354
)
355+
merge_conn(
356+
Connection(
357+
conn_id="gremlin_default",
358+
conn_type="gremlin",
359+
host="gremlin",
360+
port=8182,
361+
),
362+
session,
363+
)
355364
merge_conn(
356365
Connection(
357366
conn_id="hive_cli_default",

contributing-docs/testing/integration_tests.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ core or provider type of test.
6464
+--------------+-------------------------------------------------------+
6565
| drill | Integration required for drill operator and hook. |
6666
+--------------+-------------------------------------------------------+
67+
| gremlin | Integration required for gremlin operator and hook. |
68+
+--------------+-------------------------------------------------------+
6769
| kafka | Integration required for Kafka hooks. |
6870
+--------------+-------------------------------------------------------+
6971
| kerberos | Integration that provides Kerberos authentication. |

dev/breeze/doc/images/output-commands.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)