-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
/* | ||
Welcome to your first dbt model! | ||
Did you know that you can also configure models directly within SQL files? | ||
This will override configurations stated in dbt_project.yml | ||
Try changing "table" to "view" below | ||
*/ | ||
|
||
{{ config(materialized='view') }} | ||
|
||
select count(*) as driver_count | ||
from hivemapper.drivers | ||
|
||
/* | ||
Uncomment the line below to remove records with null `id` values | ||
*/ | ||
|
||
-- where id is not null |
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 @@ | ||
|
||
/* | ||
Welcome to your first dbt model! | ||
Did you know that you can also configure models directly within SQL files? | ||
This will override configurations stated in dbt_project.yml | ||
Try changing "table" to "view" below | ||
*/ | ||
|
||
{{ config(materialized='view') }} | ||
|
||
select sum(mints.amount) as total_payments from hivemapper.payments | ||
inner join hivemapper.mints on mints.id = payments.mint_id | ||
|
||
/* | ||
Uncomment the line below to remove records with null `id` values | ||
*/ | ||
|
||
-- where id is not null |
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