Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions airflow/providers/apache/druid/example_dags/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/apache-airflow-providers-apache-druid/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Content
Python API <_api/airflow/providers/apache/druid/index>
PyPI Repository <https://pypi.org/project/apache-airflow-providers-apache-druid/>
Installing from sources <installing-providers-from-sources>
Example DAGs <https://github.com/apache/airflow/tree/main/airflow/providers/apache/druid/example_dags>
Example DAGs <https://github.com/apache/airflow/tree/main/tests/system/providers/apache/druid>

.. THE REMAINDER OF THE FILE IS AUTOMATICALLY GENERATED. IT WILL BE OVERWRITTEN AT RELEASE TIME!

Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow-providers-apache-druid/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For parameter definition take a look at :class:`~airflow.providers.apache.druid.
Using the operator
""""""""""""""""""

.. exampleinclude:: /../../airflow/providers/apache/druid/example_dags/example_druid_dag.py
.. exampleinclude:: /../../tests/system/providers/apache/druid/example_druid_dag.py
:language: python
:dedent: 4
:start-after: [START howto_operator_druid_submit]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
"""
Example Airflow DAG to submit Apache Druid json index file using `DruidOperator`
"""

import os
from datetime import datetime

from airflow.models import DAG
from airflow.providers.apache.druid.operators.druid import DruidOperator

ENV_ID = os.environ.get("SYSTEM_TESTS_ENV_ID")
DAG_ID = "example_druid_operator"

with DAG(
dag_id='example_druid_operator',
dag_id=DAG_ID,
schedule_interval=None,
start_date=datetime(2021, 1, 1),
catchup=False,
Expand All @@ -48,3 +53,8 @@
}
"""
# [END howto_operator_druid_submit]

from tests.system.utils import get_test_run # noqa: E402

# Needed to run the example DAG with pytest (see: tests/system/README.md#run_via_pytest)
test_run = get_test_run(dag)