Skip to content

[Bug]: Pass project-id to BigQuery Client in Beam Python SDK #36857

@tarun-google

Description

@tarun-google

What happened?

We are not passing project to the bigquery client so it falls back to the default inferred from the environment. when the job is launched from the other project or project-id is not available in the env we get error from the BigQuery library. While the job itself does not fail, as Big query try to retrieve this data from metadata server. But it would be good to directly pass this information.

determine logic: https://github.com/googleapis/python-cloud-core/blob/main/google/cloud/_helpers/__init__.py#L139 raised: https://github.com/googleapis/python-cloud-core/blob/dc9aa13ed59384914a58f586eafafeb4afac49fa/google/cloud/client/__init__.py#L290

internal-bug: b/460863553

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions