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

bug:query_and_wait drops unknown properties in the QueryJobConfig #1792

Closed
Assignees
tswast
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
@tswast

Description

@tswast

In implementing pandas-gbq integration with the new, fasterquery_and_wait method, a test failure raised the issue that some request body details in a custom job configuration are being dropped. See:https://github.com/googleapis/python-bigquery-pandas/pull/722/files/7739f41989c5d0effbaf66070c6b94b6c3840506#r1459296431

Steps to reproduce

  1. Create aQueryJobConfig with unknown or invalid parameters viafrom_api_repr()
  2. Pass thejob_config toquery_and_wait().
  3. Observe that the extra parameters are not sent.

Code example

importgoogle.cloud.bigqueryclient=google.cloud.bigquery.Client()project_id="swast-scratch"job_config=google.cloud.bigquery.QueryJobConfig.from_api_repr(        {"copy": {"sourceTable": {"projectId":project_id,"datasetId":"publicdata:samples","tableId":"wikipedia",                },"destinationTable": {"projectId":project_id,"datasetId":"publicdata:samples","tableId":"wikipedia_copied",                },            }        })client.query_and_wait("select 1",job_config=job_config)

Stack trace

No stack trace is produced, even though one should be due to an invalid configuration.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

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