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

[CT-2849] [Bug] Giving key error snowflake #8154

Closed
2 tasks done
abdulrafey38 opened this issue Jul 19, 2023 · 3 comments
Closed
2 tasks done

[CT-2849] [Bug] Giving key error snowflake #8154

abdulrafey38 opened this issue Jul 19, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@abdulrafey38
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Throws key error snowflake in adapters, its not registering adapters as it do in previous versions

Expected Behavior

it should run smoothly

Steps To Reproduce

macOS with dbt 1.5

from dbt.config import RuntimeConfig
after importing RuntimeConfig i used this in one of my own package

==>running this (RuntimeConfig.from_args(args)<==) from my own package built on the top of dbt

Relevant log output

No response

Environment

- OS:mac os ventura 13.2.1
- Python:3.8.17
- dbt: 1.5.2

Which database adapter are you using with dbt?

snowflake

Additional Context

Screenshot 2023-07-20 at 1 18 54 AM
@abdulrafey38 abdulrafey38 added bug Something isn't working triage labels Jul 19, 2023
@github-actions github-actions bot changed the title Giving key error snowflake [CT-2849] Giving key error snowflake Jul 19, 2023
@abdulrafey38
Copy link
Author

In previous version of dbt first register adapters in task/basy.py file but in dbt 1.5 they dont i beleive this might be the reason, as i did test it locally and it runs fine in dbt 1.5 as well if i register adapters in tasks/base.py first

@dbeatty10 dbeatty10 changed the title [CT-2849] Giving key error snowflake [CT-2849] [Bug] Giving key error snowflake Jul 19, 2023
@dbeatty10
Copy link
Contributor

Thanks for reaching out @abdulrafey38!

The code you mentioned is a private implementation detail (changed in #6565) that we don't intend to be a public interface.

Have you given our programmatic invocations entry points a try yet?

The intent is to expose the existing dbt CLI via a Python entry point, such that top-level commands are callable from within a Python script or application.

@abdulrafey38
Copy link
Author

@dbeatty10 thank you issue resolved 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants