stankiewicz opened a new issue, #35813: URL: https://github.com/apache/beam/issues/35813
### What happened? Code: ``` # 1. Define a reference to a dataset in your BigQuery project. temp_dataset_ref = DatasetReference( projectId='foo', datasetId='my_temp_beam_datasets' ) # 2. Create your read requests as before. read_requests = ( p | 'PeriodicImpulse' >> PeriodicImpulse(...) | 'MapToReadRequest' >> beam.Map( lambda x: ReadFromBigQueryRequest( query='SELECT * FROM `foo.your_dataset.your_table`' ) ) ) # 3. Pass the temp_dataset reference to the ReadAllFromBigQuery transform. # run pipeline in baz project results = read_requests | "ReadAllFromBigQuery" >> ReadAllFromBigQuery( temp_dataset=temp_dataset_ref ) ``` what happens: Dataset baz:my_temp_beam_datasets does not exist so we will create it as temporary with location=US expected: BQ client will create dataset in foo project issue: https://github.com/apache/beam/blob/c2c9275c68063950d6253a88778f5d1f5c447553/sdks/python/apache_beam/io/gcp/bigquery_read_internal.py#L306 - project here is dataflow project while it should be self.temp_dataset.projectId (following similar logic to https://github.com/apache/beam/blob/c2c9275c68063950d6253a88778f5d1f5c447553/sdks/python/apache_beam/io/gcp/bigquery_read_internal.py#L232) ### 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org