You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
See the code sample below. Loading a string > 186 bytes to a STRING column raises the following exception: google.api_core.exceptions.BadRequest: 400 Provided Schema does not match Table. Field longstring has changed type from STRING to BYTES
google.api_core.exceptions.BadRequest: 400 Provided Schema does not match Table. Field longstring has changed type from STRING to BYTES
UPDATE: After some more debugging, I'm starting to believe that this is a bug of the load_table_from_json() method. Replacing this method by a call to insert_rows_json() did it for me:
Environment details
google-cloud-bigqueryversion: 3.8.0, 3.9.0, 3.10.0Steps to reproduce
See the code sample below. Loading a string > 186 bytes to a STRING column raises the following exception:
google.api_core.exceptions.BadRequest: 400 Provided Schema does not match Table. Field longstring has changed type from STRING to BYTESCode example
Stack trace
UPDATE: After some more debugging, I'm starting to believe that this is a bug of the
load_table_from_json()method. Replacing this method by a call toinsert_rows_json()did it for me: