ValueError: Must pass schema, or at least one RecordBatch
in BigQuery
#909
Labels
ValueError: Must pass schema, or at least one RecordBatch
in BigQuery
#909
We found the error when we query the table with
INTERVAL
orJSON
column and the table is empty.https://github.com/googleapis/python-bigquery/blob/main/google/cloud/bigquery/table.py#L1965-L1974
When the
record_batches
is None, the BigQuery client will get thearrow_schema
. But the typesINTERVAL
andJSON
are not in the mapping.https://github.com/googleapis/python-bigquery/blob/106161180ead01aca1ead909cf06ca559f68666d/google/cloud/bigquery/_pyarrow_helpers.py#L56-L71
They don't want to handle these. We can see these pending or closed issues and PRs.
googleapis/python-bigquery#1580
googleapis/python-bigquery#1832
googleapis/python-bigquery#826
The text was updated successfully, but these errors were encountered: