You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting config.contract.enforced: true and rerunning dbt
gives us a contract mismatch:
Column 'repeated_record' has type STRUCT<nested_field_1 INT64, nested_field_2 STRING> which cannot be coerced from query output type ARRAY<STRUCT<nested_field_1 INT64, nested_field_2 STRING>> at [9:5]
This does not match the BigQuery schema. The repeated_record column should have data_type: ARRAY instead of data_type: RECORD
For bigquery columns we need to take into account the mode of the column which can be REQUIRED, NULLABLE or REPEATED when specifying the data_type in the yml
For basic datatypes like repeated_int, the correct data_type there is data_type: ARRAY<INT64>
The text was updated successfully, but these errors were encountered:
Given the model
testModel
:produces the configuration:
Setting
config.contract.enforced: true
and rerunning dbtgives us a contract mismatch:
This does not match the BigQuery schema. The
repeated_record
column should havedata_type: ARRAY
instead ofdata_type: RECORD
For bigquery columns we need to take into account the mode of the column which can be
REQUIRED
,NULLABLE
orREPEATED
when specifying thedata_type
in the ymlFor basic datatypes like
repeated_int
, the correctdata_type
there isdata_type: ARRAY<INT64>
The text was updated successfully, but these errors were encountered: