[Bug] Nested record field is not quoted and causes build error when contract enforced enabled. #554
Labels
feature:nested-columns
Issues related to nested columns, like BigQuery's struct
pkg:dbt-bigquery
Issue affects dbt-bigquery
type:bug
Something isn't working as documented
Is this a new bug in dbt-bigquery?
Current Behavior
Hello,
I have the following model that use two reserved keywords groups and full as example:
and the following model schema:
The model cannot be build because the nested column full is not quoted during contract validation step. However, the groups column is correctly quoted. Here is the generated query that causes the issue:
Expected Behavior
The dbt-bigquery adapter should quote any reference of the full column during table schema validation and next steps.
Steps To Reproduce
Open your DBT project
Create the following model_bug.sql:
Relevant log output
No response
Environment
- dbt-cloud: 2024.7.209
Additional Context
No response
The text was updated successfully, but these errors were encountered: