/demo-getdbt

Gitpod Demo for getdbt

Primary LanguageHTML

Welcome to your new dbt project!

Using the starter project

Try running the following commands:

  • dbt run
  • dbt test

Resources:

  • 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

Instructiones para ambiente

  • configurar profiles mkdir ~/.dbt && cp profiles/* ~/.dbt/

Workshop 1

  • 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

Workshop 2

nomenclaturas:

  • stg_ staging
  • raw_ raw o source original
  • dmt_ datamarts ...
  • git:
    • git tutorial: https://learngitbranching.js.org/
    • git status te muestra el estado del repositorio
    • git clone url clona un repositorio
    • git pull se traen la ultiam version del repositorio (del branch que esten)
    • git checkout -b <branch_name> crea y cambia a un branch con ese branch_name
    • git add <file_path> agrega un archivo al repo
    • git rm <file_path> borra un archivo del repo
    • git commit -m "mensaje" commitea los cambios al repo
    • git push empuja los cambios al repositorio (de origen)