Repository navigation
Conversation
The Python client's load_table_from_json uses the small multipart upload path and reads the job status from the upload response. serveMultipart returned the job without a status, so the client surfaced '400 unspecified job configuration query'. Set the terminal status the same way the resumable path does. Refs #6
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.
What
client.load_table_from_json(...).result()from the Python client fails with400 unspecified job configuration query. The client uses a small multipart upload for this path and reads the terminal job status directly from the upload response.serveMultipartreturned the job without settingstatus.state, so the client treated the job as failed.This sets
status.state = DONEon the multipart response, matching what the resumable upload path andjobs.getalready do.Changes
server/handler.go: set a terminalJobStatuson the job returned byserveMultipart.server/server_test.go: newTestMultipartJSONLoadReportsJobStatussends a Python-client-shapedNEWLINE_DELIMITED_JSONmultipart upload (withjsonExtension,ignoreUnknownValues,schemaUpdateOptions) and asserts aDONEstatus plus queryable rows.Verification
go test ./server ./internal/... ./types— all green.go test ./...hits the 11-minute sandbox timeout intest/e2e(environment-related, unrelated to this change).Stack
Rung 1 of the PR stack. Next: #7 (CDC load options). Upstream context: goccy#288 (closed), goccy#533 (open PR claiming the same fix).
Refs #6