Skip to content

Commit

Permalink
Merge pull request #54 from dagster-io/izzy/rename_sling_asset
Browse files Browse the repository at this point in the history
updated sling asset name
  • Loading branch information
izzye84 authored Dec 13, 2023
2 parents 2a85d8d + 4cfb3aa commit 10ab4c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dbt_project/models/CLEANED/locations_cleaned.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
with source as (

select *
from {{ source("RAW_DATA", "location") }}
from {{ source("RAW_DATA", "locations") }}

),

Expand Down
5 changes: 1 addition & 4 deletions dbt_project/models/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ sources:
tables:
- name: "orders"
- name: "users"
- name: "location"
meta:
dagster:
asset_key: ['location']
- name: "locations"
- name: "FORECASTING"
tables:
- name: "predicted_orders"
4 changes: 2 additions & 2 deletions hooli-demo-assets/hooli_demo_assets/assets/sling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


raw_location = build_sling_asset(
asset_spec=AssetSpec(key=["location"]),
asset_spec=AssetSpec(key=["locations"]),
source_stream="s3://hooli-demo/embedded-elt/",
target_object= "RAW_DATA.LOCATION",
target_object= "RAW_DATA.LOCATIONS",
mode=SlingMode.FULL_REFRESH,
source_options={"format": "csv"},
sling_resource_key="s3_to_snowflake_resource"
Expand Down
2 changes: 1 addition & 1 deletion hooli-demo-assets/hooli_demo_assets/jobs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dagster import AssetSelection, define_asset_job

raw_location_by_day = AssetSelection.keys(["RAW_DATA", "location"])
raw_location_by_day = AssetSelection.keys(["RAW_DATA", "locations"])

daily_sling_job = define_asset_job(
name="daily_sling_job",
Expand Down

0 comments on commit 10ab4c6

Please sign in to comment.