-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-sigma] Update Sigma documentation to showcase new API patter…
…ns (#25598) ## Summary Updates our Sigma docs to incorporate the new specs-building pattern and norm of passing the resource to `Definitions`.
- Loading branch information
1 parent
b82590b
commit 42f5163
Showing
5 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
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
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
7 changes: 4 additions & 3 deletions
7
examples/docs_snippets/docs_snippets/integrations/sigma/representing-sigma-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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from dagster_sigma import SigmaBaseUrl, SigmaOrganization | ||
from dagster_sigma import SigmaBaseUrl, SigmaOrganization, load_sigma_asset_specs | ||
|
||
import dagster as dg | ||
|
||
resource = SigmaOrganization( | ||
sigma_organization = SigmaOrganization( | ||
base_url=SigmaBaseUrl.AWS_US, | ||
client_id=dg.EnvVar("SIGMA_CLIENT_ID"), | ||
client_secret=dg.EnvVar("SIGMA_CLIENT_SECRET"), | ||
) | ||
|
||
defs = resource.build_defs() | ||
sigma_specs = load_sigma_asset_specs(sigma_organization) | ||
defs = dg.Definitions(assets=[*sigma_specs], resources={"sigma": sigma_organization}) |