Closed rubenvereecken closed 6 months ago
I ran into issues with properties that had the following type
{'items': {'type': 'object'}, 'type': ['null', 'array']}
because BQ was expecting a schema for the objects, but target-bigquery was generating an empty schema RECORD type.
target-bigquery
RECORD
This PR changes that to a JSON type if there's nothing to base a schema on, in line with the general assumption that JSON is a good fallback.
JSON
Should break nothing, as hitting this edge case produces errors without this PR.
LGTM I faced the same issue. After merging this into my fork, it works perfectly.
LGTM, thanks for this!
I ran into issues with properties that had the following type
because BQ was expecting a schema for the objects, but
target-bigquery
was generating an empty schemaRECORD
type.This PR changes that to a
JSON
type if there's nothing to base a schema on, in line with the general assumption that JSON is a good fallback.Should break nothing, as hitting this edge case produces errors without this PR.