Repository navigation
Conversation
jobs.insert returns a Job whose output-only status is always populated (see the BigQuery REST reference). The resumable upload path already sets status.state=DONE, but the multipart path returned the job without it. google-cloud-bigquery's LoadJob.result() treats a missing state as "not started" and re-submits the job through the plain jobs.insert endpoint, which does not accept media uploads, so load_table_from_dataframe() and load_table_from_json() failed with "unspecified job configuration query" (see goccy#288).
A query without a destination stores its result in a hidden dataset that was named after the job id. Job ids may contain '-' (the Python client uses UUIDs) but BigQuery dataset ids only allow letters, digits and underscores; real BigQuery names these datasets "_<hash>". Clients that quote the id (e.g. ibis, which reads query.destination of a "SELECT 1" as its session dataset and later calls tables.get on temp tables created there) then fail with "dataset ... is not found". Name the dataset "_" + the job id with every other character replaced by "_".
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With the Python client (and ibis on top of it), you can't:
load_table_from_dataframe(),load_table_from_json()); it fails with400 unspecified job configuration query(same symptom as Does the emulator work with Pandas GBQ? #288 );ibis.memtable+create_table(temp=True)), then use it in a later query. This is the usual "stage the data, then MERGE" pattern.Root causes
statuswhen you submit a job. The emulator already does this for large (resumable) uploads, but not for small ones (multipart). ThePython client reads the missing status as "job not started" and submits the load again as a normal request. The emulator can't handle that request, hence the 400._<hash>). ibis then looks up its temp tables in that dataset by its quoted name, and fails withdataset ... is not found.Fix