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: docs/docs/integrations/libraries/fivetran.md
+14
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,20 @@ Definitions from multiple Fivetran workspaces can be combined by instantiating m
127
127
language="python"
128
128
/>
129
129
130
+
### Define upstream dependencies
131
+
132
+
By default, Dagster does not set upstream dependencies when generating asset specs for your Fivetran assets. You can set upstream dependencies on your Fivetran assets by passing an instance of the custom <PyObjectsection="libraries"module="dagster_fivetran"object="DagsterFivetranTranslator" /> to the <PyObjectsection="libraries"module="dagster_fivetran"object="load_fivetran_asset_specs" /> function.
Note that `super()` is called in each of the overridden methods to generate the default asset spec. It is best practice to generate the default asset spec before customizing it.
141
+
142
+
You can pass an instance of the custom <PyObjectsection="libraries"module="dagster_fivetran"object="DagsterFivetranTranslator" /> to the <PyObjectsection="libraries"module="dagster_fivetran"object="fivetran_assets" /> decorator or the <PyObjectsection="libraries"module="dagster_fivetran"object="build_fivetran_assets_definitions" /> factory.
143
+
130
144
### Define downstream dependencies
131
145
132
146
Dagster allows you to define assets that are downstream of specific Fivetran tables using their asset keys. The asset key for a Fivetran table can be retrieved using the asset definitions created using the <PyObjectsection="libraries"module="dagster_fivetran"object="fivetran_assets" /> decorator. The below example defines `my_downstream_asset` as a downstream dependency of `my_fivetran_table`:
0 commit comments