-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-fivetran] Add fetch_column_metadata docs for Fivetran (#26813)
## Summary & Motivation As title. Added for both new and old docs site. ## How I Tested These Changes BK and docs preview
- Loading branch information
1 parent
f0cf1f1
commit 18c3c18
Showing
10 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...nippets/docs_beta_snippets/integrations/fivetran/fetch_column_metadata_fivetran_assets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from dagster_fivetran import FivetranWorkspace, fivetran_assets | ||
|
||
import dagster as dg | ||
|
||
fivetran_workspace = FivetranWorkspace( | ||
account_id=dg.EnvVar("FIVETRAN_ACCOUNT_ID"), | ||
api_key=dg.EnvVar("FIVETRAN_API_KEY"), | ||
api_secret=dg.EnvVar("FIVETRAN_API_SECRET"), | ||
) | ||
|
||
|
||
@fivetran_assets( | ||
connector_id="fivetran_connector_id", | ||
workspace=fivetran_workspace, | ||
) | ||
def fivetran_connector_assets( | ||
context: dg.AssetExecutionContext, fivetran: FivetranWorkspace | ||
): | ||
yield from fivetran.sync_and_poll(context=context).fetch_column_metadata() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ocs_snippets/docs_snippets/integrations/fivetran/fetch_column_metadata_fivetran_assets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from dagster_fivetran import FivetranWorkspace, fivetran_assets | ||
|
||
import dagster as dg | ||
|
||
fivetran_workspace = FivetranWorkspace( | ||
account_id=dg.EnvVar("FIVETRAN_ACCOUNT_ID"), | ||
api_key=dg.EnvVar("FIVETRAN_API_KEY"), | ||
api_secret=dg.EnvVar("FIVETRAN_API_SECRET"), | ||
) | ||
|
||
|
||
@fivetran_assets( | ||
connector_id="fivetran_connector_id", | ||
workspace=fivetran_workspace, | ||
) | ||
def fivetran_connector_assets( | ||
context: dg.AssetExecutionContext, fivetran: FivetranWorkspace | ||
): | ||
yield from fivetran.sync_and_poll(context=context).fetch_column_metadata() |
18c3c18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs ready!
✅ Preview
https://dagster-docs-j1mpt0j1f-elementl.vercel.app
https://master.dagster.dagster-docs.io
Built with commit 18c3c18.
This pull request is being automatically deployed with vercel-action
18c3c18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs-beta ready!
✅ Preview
https://dagster-docs-beta-8yh9djtk8-elementl.vercel.app
Built with commit 18c3c18.
This pull request is being automatically deployed with vercel-action