You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,8 @@ Currently, the following `dbt` commands are supported:
142
142
143
143
## Examples
144
144
145
+
All example DAGs are tested against against `apache-airflow==2.2.5`. Some changes, like modifying `import` statements or changing types, may be required for them to work in other versions.
Copy file name to clipboardExpand all lines: docs/example_dags.rst
+26-24Lines changed: 26 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@ Example DAGs
3
3
4
4
This section contains a few DAGs showing off some dbt pipelines to get you going.
5
5
6
+
.. warning::
7
+
All example DAGs are tested against against `apache-airflow==2.2.5`. Some changes, like modifying `import` statements or changing types, may be required for them to work in environments running other versions of Airflow.
8
+
6
9
Basic DAG
7
10
^^^^^^^^^
8
11
@@ -17,7 +20,7 @@ This basic DAG shows off a single ``DbtRunOperator`` that executes daily:
17
20
18
21
from airflow importDAG
19
22
from airflow.utils.dates import days_ago
20
-
from airflow_dbt_python.dbt.operators import DbtRunOperator
23
+
from airflow_dbt_python.operators.dbtimport DbtRunOperator
21
24
22
25
with DAG(
23
26
dag_id="example_basic_dbt_run",
@@ -53,7 +56,7 @@ This DAG shows off a ``DbtRunOperator`` followed by a ``DbtDocsGenerateOperator`
53
56
54
57
from airflow importDAG
55
58
from airflow.utils.dates import days_ago
56
-
from airflow_dbt_python.dbt.operators import DbtDocsGenerateOperator, DbtRunOperator
59
+
from airflow_dbt_python.operators.dbtimport DbtDocsGenerateOperator, DbtRunOperator
57
60
58
61
with DAG(
59
62
dag_id="example_basic_dbt_run_with_s3",
@@ -62,28 +65,27 @@ This DAG shows off a ``DbtRunOperator`` followed by a ``DbtDocsGenerateOperator`
62
65
catchup=False,
63
66
dagrun_timeout=dt.timedelta(minutes=60),
64
67
) as dag:
68
+
# Project files will be pulled from "s3://my-bucket/dbt/profiles/key/prefix/"
0 commit comments