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

Specifying specific model not working #18

Closed
SimonSchmitke opened this issue Sep 22, 2023 · 1 comment
Closed

Specifying specific model not working #18

SimonSchmitke opened this issue Sep 22, 2023 · 1 comment

Comments

@SimonSchmitke
Copy link

SimonSchmitke commented Sep 22, 2023

Context

I use dbt + Snowflake. This successfully works and writes to Notion when I use model-records-to-write: "all", but does not work when choosing a specific model, such as stg_accounts.

What I've tried

I've tried combinations in the workflow below, such as:

      - name: dbt-docs-to-notion
        uses: rfdearborn/dbt-docs-to-notion@v1.0.9
        with:
          dbt-package: 'dbt-snowflake==1.4.1'
          dbt-target: 'notion'
          model-records-to-write: <Update this>
          ...

and I've entered:

  • model-records-to-write: "stg_accounts"
  • model-records-to-write: "STG_ACCOUNTS"
  • model-records-to-write: "my_database.schema.stg_accounts"
  • model-records-to-write: "MY_DATABASE.SCHEMA.STG_ACCOUNTS"
  • model-records-to-write: "schema.stg_accounts"
  • model-records-to-write: "SCHEMA.STG_ACCOUNTS"

and tried single quotes for all of the above, but none of these work. No errors show up in the workflow. Not sure what to do.

Any ideas?

@SimonSchmitke
Copy link
Author

I solved my issue!

The issue is that when you specify model(s), you have to specify model.dbt_project_name.model_name. So my dbt project name is analytics (found at the top of the dbt_project.yml under "name"), so I have to type in:

  • model.analytics.stg_accounts
    And that works

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

No branches or pull requests

1 participant