Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dataset existence validation for uploadContentRequest #5

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

myhau
Copy link
Owner

@myhau myhau commented Jul 12, 2024

Problem

When creating load job that loads JSON from GCS emulator (https://github.com/fsouza/fake-gcs-server), BigQuery emulator fails with:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error POST http://localhost:33144/bigquery/v2/projects/test-project/jobs?prettyPrint=false {   "code" : 500,   "errors" : [ {     "location" : "",     "message" : "runtime error: invalid memory address or nil pointer dereference",     "reason" : "internalError",     "debugInfo" : ""   } ],   "message" : "runtime error: invalid memory address or nil pointer dereference" }

Solution

Check if dataset exists.

Possibly related

@myhau myhau merged commit ea0d66a into main Jul 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant