Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[embedded-elt][sling] passing translator and replication config from decorator using metadata #20564

Merged
merged 13 commits into from
Mar 22, 2024
Prev Previous commit
Next Next commit
rm default sling translator
  • Loading branch information
cmpadden committed Mar 22, 2024
commit 23c4ebebb0537e46beb4c6bb85fd9878a9ac4b29
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dagster_embedded_elt.sling import (
DagsterSlingTranslator,
SlingResource,
sling_assets,
)
@@ -10,10 +9,7 @@
sling_resource = SlingResource(connections=[...]) # Add connections here


@sling_assets(
replication_config=replication_config,
dagster_sling_translator=DagsterSlingTranslator(),
)
@sling_assets(replication_config=replication_config)
def my_assets(context, sling: SlingResource):
yield from sling.replicate(context=context)
for row in sling.stream_raw_logs():