Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

table_constraints has no setter? #1990

Closed
Assignees
GaoleMeng
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.
@roy-work

Description

@roy-work

AFAICT, it does not seem possible to create a table with the Python library, astable_constraints is inexplicably unsettable. (You can't, AFAICT, create PK/FK constraints via the Console,either, so I am beginning to wonder how onedoes 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
    Name: google-cloud-bigqueryVersion: 3.25.0Summary: Google BigQuery API client libraryHome-page: https://github.com/googleapis/python-bigqueryAuthor: Google LLCAuthor-email: googleapis-packages@google.comLicense: Apache 2.0Location: <snip>Requires: google-api-core, google-auth, google-cloud-core, google-resumable-media, packaging, python-dateutil, requestsRequired-by:

Steps to reproduce

  1. Attempt to create a table w/ a primary key or FK
  2. Run into trouble.

Code example

Wherea_bq_table is aTable, andconstraints is aTableConstraints

In [72]:a_bq_table.table_constraints=constraints---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)CellIn[72],line1---->1a_bq_table.table_constraints=constraintsAttributeError:property'table_constraints'of'Table'objecthasnosetter

Stack trace

N/A

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp