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

generate_source not working with Snowflake #186

Open
1 of 5 tasks
MikeHermus opened this issue Oct 28, 2024 · 0 comments
Open
1 of 5 tasks

generate_source not working with Snowflake #186

MikeHermus opened this issue Oct 28, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@MikeHermus
Copy link

Describe the bug

I want to add a new source (in Snowflake) to my project by using the generate_source macro, but since recently it is resulting in errors which aren't clear. When I try to run the same macro as an operation in the commandline there seems to be a bit more information available on the error.

Steps to reproduce

1. Compile the macro which looks like this to retrieve the source from Snowflake:

{{
    codegen.generate_source(
        schema_name="jarvis",
        database_name="master_data_prod",
        generate_columns=true,
        include_data_types=true,
        include_descriptions=true,
        include_schema=true,
    )
}}

Resulting error:
image

2. Run the macro via the commandline:
dbt run-operation generate_source --args '{"schema_name":"jarvis", "database_name":"master_data_prod", "generate_columns":true, "include_data_types":true, "include_descriptions":true, "include_schema":true}'

Resulting error(s):
image
Detailed log: logs.txt

Expected results

An output yaml of my new source

Actual results

See errors in "steps to reproduce"

Screenshots and log output

See errors in "steps to reproduce"

System information

The contents of your packages.yml file:
packages:

  • package: dbt-labs/codegen
    version: 0.12.1

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

<output goes here>

Using DBT cloud versionless

The operating system you're using:

The output of python --version:

Additional context

Are you interested in contributing the fix?

@MikeHermus MikeHermus added bug Something isn't working triage labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant