[Bug] Issue with codegen
, requires changing dbt/adapters/databricks/relation.py
#226
Closed
2 tasks done
Is this a new bug in dbt-core?
Current Behavior
Let me start by saying, I am aware this is a codegen command, but I was able to fix it by changing code for the databricks dbt adapter in my local python virtual environment. If I need to log an issue in the codegen repo* instead, please let me know..
Get an error when running generate_source command.
Expected Behavior
Codegen is able to connect to databricks and generate a proper source file
Steps To Reproduce
Using databricks adapter,
Create a source from shallow cloned tables
In databricks, create new schema, and create tables by:
Run this dbt command:
Relevant log output
Environment
Which database adapter are you using with dbt?
No response
Additional Context
Issue was fixed locally for me by changing .venv/Libs/site-packages/dbt/adapters/databricks/relation.py to have "managed_shallow_clone" as a databricks relation type (ShallowClone line below)
Though I am not sure the implications of just making this change. It has not caused any issues locally for me in months. I just have to remember to do this again if I ever clone my repo to a new folder or machine and create a new venv.
The text was updated successfully, but these errors were encountered: