Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Revert "Fix stg models for dbx"
Browse files Browse the repository at this point in the history
This reverts commit 2735fe7.
  • Loading branch information
lostmygithubaccount committed Oct 7, 2022
1 parent b5eacac commit 2cac3cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions models/staging/stg_orders.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ renamed as (

---------- ids
id as order_id,
store_id as location_id,
customer as customer_id,
location_id,
customer_id,

---------- properties
cast(order_total / 100.0 as float) as order_total,
cast(tax_paid / 100.0 as float) as tax_paid,
(order_total / 100.0)::float as order_total,
(tax_paid / 100.0)::float as tax_paid,

---------- timestamps
ordered_at
Expand Down
1 change: 0 additions & 1 deletion scripts/snowflake.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ file_format = ( type = parquet );

create or replace external table orders (
id string as (value:id::string),
-- why rename these here, rather than in the staging model? :(
location_id string as (value:store_id::string),
customer_id string as (value:customer::string),
ordered_at timestamp as (value:ordered_at::timestamp),
Expand Down

0 comments on commit 2cac3cc

Please sign in to comment.