Open ferdyh opened 4 months ago
It looks like the query generates an cast(null as struct) as [column_name] whcih is invalid. WHen i define the whole struct type, it works.
Thanks for the report. If you'd like to work on a PR to address, I'd be happy to help; otherwise due to resource constraints, this bug will probably not be fixed until the next time we work on improving column-specific feature support, hopefully later this year.
There is an existing implementation for BigQuery, it'll be nice if nested columns will look the same for a different providers.
Describe the bug
When I specify a column with data_type struct when using model contracts, then i get a runtime error.
Steps To Reproduce
Expected behavior
Expected to accept the struct datatype without giving errors.
Screenshots and log output
10:13:42 Runtime Error in model [model_name] (models\[model_name].sql) struct (of class java.lang.String)
System information
The output of
dbt --version
:Also broken in 1.7.13 and 1.7.17
The operating system you're using: Windows 11
The output of
python --version
: Python 3.11.9