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.
AFAICT, it does not seem possible to create a table with the Python library, as table_constraints is inexplicably unsettable. (You can't, AFAICT, create PK/FK constraints via the Console, either, so I am beginning to wonder how one does make use of this feature.)
Environment details
OS type and version: macOS 14.5
Python version: python --version: Python 3.12.3
pip version: pip --version
pip 24.0 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)
google-cloud-bigquery version: pip show google-cloud-bigquery
AFAICT, it does not seem possible to create a table with the Python library, as
table_constraintsis inexplicably unsettable. (You can't, AFAICT, create PK/FK constraints via the Console, either, so I am beginning to wonder how one does make use of this feature.)Environment details
python --version:Python 3.12.3pip --versiongoogle-cloud-bigqueryversion:pip show google-cloud-bigquerySteps to reproduce
Code example
Where
a_bq_tableis aTable, andconstraintsis aTableConstraintsStack trace
N/A