Closed JustGitting closed 6 months ago
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Describe the bug
I'm trying to create the source schema for tables in an Microsoft SQL Server database using the codegen macro. The initial problem was accessing the database because the database name contained a hyphen, "my-database1". But I fixed this by specifying the database_name with square brackets.
Steps to reproduce
Execute the following command.
Expected results
The schema template for all tables in MS SQL Server database displayed in the terminal.
Actual results
Instead of the schema being generated, the following error is produced:
Field "type" of type Optional[RelationType] in BaseRelation has invalid value Undefined
Log output
Output of the dbt command.
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:The sqlserver plugin only supports DBT 1.4.6, which is why I'm running an older version of DBT.
The operating system you're using:
GNU/Linux Debian
The output of
python3 --version
:Additional context
The following command works if specifying tables:
Output:
Are you interested in contributing the fix?
I've not used python for a while, but happy to debug.