AttributeError: 'NoneType' object has no attribute 'to_api_repr' #836
Labels
api: bigquery
Issues related to the googleapis/python-bigquery-pandas API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In the new pandas_gqb Version 0.24.0 there seems to be a bug with writing to BigQuery tables from dataframes where there are nested columns which only include NULL values. However the Schema type should be clear since we provide a Schema for type information.
With pandas_gbq Version=0.24.0 - we get a "AttributeError: 'NoneType' object has no attribute 'to_api_repr' " Error - for the previous version 0.23.0 we do not get this error and the script works.
I assume the reason is that in the library we try to get the schema for this dataframe in "gbq.py" eventhough the schema would be provided. The function "generate_bq_schema" fails eventhough the execution would not be necessary in this case:
Environment details
pandas-gbq
version: 0.24.0Steps to reproduce
Code example
Stack trace
The text was updated successfully, but these errors were encountered: