goccy/bigquery-emulator

Java BigQuery client by default uses POST over PATCH for updates, emulator cannot handle that

Opened this issue · 0 comments

What happened?

The java bigquery client by default will not use PATCH methods to perform updates. Instead, it will use a POST with a header x-http-method-override=PATCH to indicate a PATCH method. This likely has something to do with certain proxies not allowing PATCH, but the end result is that updates do not succeed with the error message unexpected request path as described in issue #81 as well. This call works successfully on big query itself, likely some kind of interceptor installed on google's side or so.

What did you expect to happen?

I expected the update to happen.

How can we reproduce it (as minimally and precisely as possible)?

Any update call with the java big query library will trigger the issue. I can see if I can provide a small sample project if this would help/be necessary.

Anything else we need to know?

No response