Welcome to your new dbt project!
Try running the following commands:
- dbt run
- dbt test
- Learn more about dbt in the docs
- Check out Discourse for commonly asked questions and answers
- Join the chat on Slack for live discussions and support
- Find dbt events near you
- Check out the blog for the latest news on dbt's development and best practices
- configurar profiles
mkdir ~/.dbt && cp profiles/* ~/.dbt/
- Conectar sources de datos a DBT
- modelar tablas/vistas en models
- dbt_project << contiene configuracion del proyecto
- profiles
- dbt run << correr las transformaciones
- dbt test << ejecutar los testing
- schema.yml << es donde se guarda la informacion de schema y metadata de las fuentes
- jinja https://jinja.palletsprojects.com/en/3.0.x/templates/#if
- Macros
- docs de dbt_utils = https://hub.getdbt.com/dbt-labs/dbt_utils/latest/
- video tutoriales = https://courses.getdbt.com/collections
- packages
- se agregan al packages.yml
- se corre
dbt deps
dbt run
compila y corre en el motor los sqldbt compile
solo compila el codigo- la carpeta
target
solo aparece cuando se corredbt run
odbt compile
- la documentacion se genera con
dbt docs generate
y se puede ver condbt docs serve
- stg_ staging
- raw_ raw o source original
- dmt_ datamarts ...
- git:
- git tutorial: https://learngitbranching.js.org/
git status
te muestra el estado del repositoriogit clone url
clona un repositoriogit pull
se traen la ultiam version del repositorio (del branch que esten)git checkout -b <branch_name>
crea y cambia a un branch con esebranch_name
git add <file_path>
agrega un archivo al repogit rm <file_path>
borra un archivo del repogit commit -m "mensaje"
commitea los cambios al repogit push
empuja los cambios al repositorio (de origen)