Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.07 KB

File metadata and controls

41 lines (26 loc) · 1.07 KB

Exercise:

Add sources to your DAG

Declaring a source

Sources are defined in .yml files nested under a sources: key.

version: 2

sources:
  - name: jaffle_shop
    database: raw  
    schema: jaffle_shop  
    tables:
      - name: orders
      - name: customers

  - name: stripe
    tables:
      - name: payments
  • By default, schema will be the same as name. Add schema only if you want to use a source name that differs from the existing schema.

If you're not already familiar with these files, be sure to check out the documentation on schema.yml files before proceeding.

Using the example above you should create the sources file following the style guide.

To find out more information about sources clik here to access dbt documentation for more details.


Solution


Return to Project Challenges