Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: BigQueryIO.TypedRead should have setLabel function to set labels for BigQuery commands #26545

Closed
2 of 15 tasks
adamallegro opened this issue May 4, 2023 · 0 comments · Fixed by #31698
Closed
2 of 15 tasks

Comments

@adamallegro
Copy link

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
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant