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

updated sling asset name #54

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading