beam icon indicating copy to clipboard operation
beam copied to clipboard

[Feature Request]: Allow setting BigQuery endpoint, for example to use bigquery emulator

Open faisalhasnain opened this issue 2 years ago • 3 comments

What happened?

There is no way to specify root url for bigquery service like we have for pubsub (PubsubOptions.setPubsubRootUrl). In particular i was trying leverage bigquery-emulator for my local development environment and that was the only blocker.

Issue Priority

Priority: 3 (minor)

Issue Components

  • [ ] Component: Python SDK
  • [X] 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

faisalhasnain avatar Aug 24 '23 21:08 faisalhasnain

I am facing the same problem, I would like to be able to use the emulator. After checking the BigQueryIO class at public static <T> TypedRead<T> read(SerializableFunction<SchemaAndRecord, T> parseFn) it seems it could be possible by having a wrapper around setBigQueryServices?

pablomarti avatar Sep 21 '23 11:09 pablomarti

I would also like to use BigQuery emulator in our local test suite, but overriding base url in BigQueryIO does not seem to be supported.

I'm happy to add support for this, but wanted to know maintainers' opinion first.

What do you think? cc: @kennknowles @ahmedabu98

Btw issue https://github.com/apache/beam/issues/28841 seems to be a duplicate of this one.

myhau avatar Jun 28 '24 08:06 myhau

I think this is a fine idea.

kennknowles avatar Jun 28 '24 18:06 kennknowles

.take-issue

kberezin-nshl avatar Aug 12 '24 06:08 kberezin-nshl

I am facing the same problem with Python. I see the PR added this feature only for Java. Should we create another separate Issue for this?

tomaslink avatar Oct 01 '24 00:10 tomaslink

feature request for Python SDK is tracked in #23598

Abacn avatar Jan 09 '25 18:01 Abacn