[ADAP-1073] [Bug] Not able preview structs when the struct is null
#1055
Labels
bug
Something isn't working
High Severity
bug with significant impact that should be resolved in a reasonable timeframe
Is this a new bug in dbt-bigquery?
Current Behavior
If we have a struct column that contains
null
thendbt show
runs into an unhandled error.Expected Behavior
We should gracefully handle this error.
Steps To Reproduce
So it depends how the
null
gets into the data - if it's on the outer struct level itself (i.e. the data is literallynull
) vs a null that is within a json object itself (i.e. the data is a json type of which the value isnull
) is when we run into this error.Relevant log output
No response
Environment
Additional Context
Last time we ran into something similar (#972) - it was due to the underlying bigquery python client so wont surprise me if it's more of the same.
Potential workaround for now is to check if null and coerce it into
to_json(null)
:The text was updated successfully, but these errors were encountered: