-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add dbt for data modeling #248
base: main
Are you sure you want to change the base?
Conversation
_dbt/models/example/schema.yml
Outdated
version: 2 | ||
|
||
models: | ||
- name: my_first_dbt_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'imagine que c'est ici qu'on décrit le modèle Keywords
|
||
{{ config(materialized='table') }} | ||
|
||
with source_data as ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ici on mettrait la requête SQL qu'on souhaite transformer en vue, c'est bien ça ?
|
||
Try running the following commands: | ||
- dbt run | ||
- dbt test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pour la production, j'imagine qu'on devra ajouter dbt run
dans le bash de lancement de l'image docker
https://github.com/dataforgoodfr/quotaclimat/blob/main/docker-entrypoint.sh#L5
staging: | ||
+materialized: view | ||
intermediate: | ||
+materialized: view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cette config permet à _dbt/models/intermediate/int_keywords_aggregated_by_days_and_channel.sql de devenir une vue matérialisée j'imagine ?
No description provided.