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

Add dbt for data modeling #248

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

SprinTech
Copy link

No description provided.

version: 2

models:
- name: my_first_dbt_model
Copy link
Collaborator

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 (
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants