You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a nice project and I'm quite excited to use it for enhancing the integration test suite of our data platform. I'm running into an issue with uploading data from JSON, and am hoping support could be added for it.
This is the error that gets printed to the client call:
>>> load_job.result()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/google/cloud/bigquery/job/base.py", line 966, in result
self._begin(retry=retry, timeout=timeout)
File "/usr/local/lib/python3.11/site-packages/google/cloud/bigquery/job/base.py", line 746, in _begin
api_response = client._call_api(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/google/cloud/bigquery/client.py", line 837, in _call_api
return call()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/google/api_core/retry/retry_unary.py", line 293, in retry_wrapped_func
return retry_target(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/google/api_core/retry/retry_unary.py", line 153, in retry_target
_retry_error_helper(
File "/usr/local/lib/python3.11/site-packages/google/api_core/retry/retry_base.py", line 212, in _retry_error_helper
raise final_exc from source_exc
File "/usr/local/lib/python3.11/site-packages/google/api_core/retry/retry_unary.py", line 144, in retry_target
result = target()
^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/google/cloud/_http/__init__.py", line 494, in api_request
raise exceptions.from_http_response(response)
google.api_core.exceptions.BadRequest: 400 POST http://bigquery-emulator:9050/bigquery/v2/projects/my_project/jobs?prettyPrint=false: unspecified job configuration query
And finally debug logs from the emulator:
2025-01-29 13:01:01 2025-01-29T12:01:01.425Z INFO server/middleware.go:63 GET /bigquery/v2/projects/my_project/datasets/my_dataset/tables/my_table {"query": "prettyPrint=false"}
2025-01-29 13:01:01 2025-01-29T12:01:01.445Z INFO server/middleware.go:63 POST /upload/bigquery/v2/projects/my_project/jobs {"query": "uploadType=multipart"}
2025-01-29 13:01:01 2025-01-29T12:01:01.935Z INFO server/middleware.go:63 POST /bigquery/v2/projects/my_project/jobs {"query": "prettyPrint=false"}
2025-01-29 13:01:01 2025-01-29T12:01:01.950Z ERROR server/handler.go:1019 jobInternalError {"error": "jobInternalError: unspecified job configuration query"}
Would be great if this feature can be supported!
The text was updated successfully, but these errors were encountered:
What would you like to be added?
Hi!
This is a nice project and I'm quite excited to use it for enhancing the integration test suite of our data platform. I'm running into an issue with uploading data from JSON, and am hoping support could be added for it.
The bug has similarities to these other issues:
load_table_from_dataframe
. #224Here is a code snippet to reproduce:
The emulator is running in Docker Compose, here is the service configuration:
And the contents of
bigquery-emulator-testdata.yaml
:This is the error that gets printed to the client call:
And finally debug logs from the emulator:
Would be great if this feature can be supported!
The text was updated successfully, but these errors were encountered: