You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "adamallegro (via GitHub)" <gi...@apache.org> on 2023/05/04 14:10:44 UTC

[GitHub] [beam] adamallegro opened a new issue, #26545: [Feature Request]: BigQueryIO.TypedRead should have setLabel function to set labels for BigQuery commands

adamallegro opened a new issue, #26545:
URL: https://github.com/apache/beam/issues/26545

   ### What would you like to happen?
   
   BigQuery provides the functionality of labelling queries. It is beneficial when it comes to distinguishing two similar queries and distinguishing their costs. (of course when it is impossible to do it any other way)
   
   Unfortunately, it is impossible to set these labels right now for queries that read the data with the BigQueryIO class:
   ```
   pipeline.apply("Read rows", BigQueryIO.readTableRows().fromQuery(sql).usingStandardSql());
   ```
   
   It would be perfect to be able to do something like this: 
   ```
   pipeline.apply("Read rows", BigQueryIO.readTableRows()
       .fromQuery(sql)
       .withLabel("label1", "value1")
       .withLabel("label2", "value2")
       .usingStandardSql());
   ```
   
   As far as I know, this functionality is available in the Python version of this IO connector. I hope it will be doable for the Java connector as well.
   
   ### Issue Priority
   
   Priority: 2 (default / most feature requests should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [X] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] 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-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org