diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..6e25ef6fa2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dbt.queryLimit": 500 +} \ No newline at end of file diff --git a/answers/package-lock.yml b/answers/package-lock.yml new file mode 100644 index 0000000000..30af95ca39 --- /dev/null +++ b/answers/package-lock.yml @@ -0,0 +1,10 @@ +packages: +- package: dbt-labs/dbt_utils + version: 1.1.1 +- package: calogica/dbt_expectations + version: 0.10.1 +- package: dbt-labs/codegen + version: 0.12.1 +- package: calogica/dbt_date + version: 0.10.0 +sha1_hash: 1f6859dfa92277b8f9d2c4a68de169e692440983 diff --git a/answers/packages.yml b/answers/packages.yml index e091e30bab..ec1158dd13 100644 --- a/answers/packages.yml +++ b/answers/packages.yml @@ -1,9 +1,9 @@ packages: - package: dbt-labs/dbt_utils - version: 1.0.0 + version: 1.1.1 - package: calogica/dbt_expectations - version: [">=0.8.0", "<0.9.0"] + version: [">=0.8.0", "<2.0.0"] - package: dbt-labs/codegen - version: 0.9.0 + version: 0.12.1 diff --git a/lessons/.gitignore b/lessons/.gitignore new file mode 100644 index 0000000000..49f147cb98 --- /dev/null +++ b/lessons/.gitignore @@ -0,0 +1,4 @@ + +target/ +dbt_packages/ +logs/ diff --git a/lessons/README.md b/lessons/README.md new file mode 100644 index 0000000000..7874ac842b --- /dev/null +++ b/lessons/README.md @@ -0,0 +1,15 @@ +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](https://docs.getdbt.com/docs/introduction) +- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers +- Join the [chat](https://community.getdbt.com/) on Slack for live discussions and support +- Find [dbt events](https://events.getdbt.com) near you +- Check out [the blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices diff --git a/lessons/analyses/.gitkeep b/lessons/analyses/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lessons/dbt_project.yml b/lessons/dbt_project.yml new file mode 100644 index 0000000000..f31bb25204 --- /dev/null +++ b/lessons/dbt_project.yml @@ -0,0 +1,37 @@ + +# Name your project! Project names should contain only lowercase characters +# and underscores. A good package name should reflect your organization's +# name or the intended use of these models +name: 'lessons' +version: '1.0.0' +config-version: 2 + +# This setting configures which "profile" dbt uses for this project. +profile: 'lessons' + +# These configurations specify where dbt should look for different types of files. +# The `model-paths` config, for example, states that models in this project can be +# found in the "models/" directory. You probably won't need to change these! +model-paths: ["models"] +analysis-paths: ["analyses"] +test-paths: ["tests"] +seed-paths: ["seeds"] +macro-paths: ["macros"] +snapshot-paths: ["snapshots"] + +clean-targets: # directories to be removed by `dbt clean` + - "target" + - "dbt_packages" + + +# Configuring models +# Full documentation: https://docs.getdbt.com/docs/configuring-models + +# In this example config, we tell dbt to build all models in the example/ +# directory as views. These settings can be overridden in the individual model +# files using the `{{ config(...) }}` macro. +models: + lessons: + # Config indicated by + and applies to all files under models/example/ + example: + +materialized: view diff --git a/lessons/macros/.gitkeep b/lessons/macros/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lessons/seeds/.gitkeep b/lessons/seeds/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lessons/snapshots/.gitkeep b/lessons/snapshots/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lessons/tests/.gitkeep b/lessons/tests/.gitkeep new file mode 100644 index 0000000000..e69de29bb2