Default values not initialized when job loading data with the Python API #1495
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When issuing a job with
load_table_from_json
, fields in the Schema with a default values are not populated.I use the following table for testing purposes:
Note that I have tried with
mode="REQUIRED"
but that the loading only fails in such case.I have also tried creating the table before launching the job and to let the Python load job handle it: none of that worked.
I don't have this issue when streaming instead of using jobs.
Environment details
google-cloud-bigquery
version: 3.5.0Steps to reproduce
create_date
andnumber
are emptyCode example
Stack trace
None. Insertion happens but without the default columns populated.
The text was updated successfully, but these errors were encountered: