Skip to content

Commit

Permalink
Update docs/docs-beta/docs/tutorial/multi-asset-integration.md
Browse files Browse the repository at this point in the history
Co-authored-by: Nikki Everett <[email protected]>
  • Loading branch information
cmpadden and neverett authored Dec 20, 2024
1 parent 56be876 commit 3200f44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs-beta/docs/tutorial/multi-asset-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ class ReplicationTranslator:
return AssetKey(str(table_definition.get("name")))
```

Next, we'll update `custom_replication_assets` to use the translator when defining the `key` on the `AssetSpec`. **Note** that we took this opportunity to also include the replication project and translator instance on the `AssetSpec` metadata. This is a workaround that we tend to employ in this approach, as it makes it possible to define these objects once and then access them on the context of our asset.
Next, we'll update `custom_replication_assets` to use the translator when defining the `key` on the `AssetSpec`.

:::note
Note that we took this opportunity to also include the replication project and translator instance on the `AssetSpec` metadata. This is a workaround that we tend to employ in this approach, as it makes it possible to define these objects once and then access them on the context of our asset.
:::

```python
def custom_replication_assets(
Expand Down

0 comments on commit 3200f44

Please sign in to comment.