{"id":"d4e0ffa1-bc36-457d-95f6-027a4e5c0a46","task":"BigQuery load job from GCS","domain":"cloud.google.com","steps":["Ensure the source file(s) are in a GCS bucket accessible to the service account; the service account needs the bigquery.jobs.create and storage.objects.get permissions.","Construct a jobs.insert request body with configuration.load containing sourceUris (gs:// paths), destinationTable (projectId, datasetId, tableId), sourceFormat (e.g. NEWLINE_DELIMITED_JSON or CSV), and writeDisposition.","POST the request to https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/jobs with an Authorization: Bearer YOUR_ACCESS_TOKEN header.","Capture the jobReference.jobId from the response and poll GET /bigquery/v2/projects/{projectId}/jobs/{jobId} until status.state is DONE.","Check status.errorResult in the completed job response; if present, the load failed and the field contains the error reason."],"gotchas":["GCS bucket and BigQuery dataset must be in the same region or use multi-region buckets that overlap with the dataset location; cross-region loads fail.","CSV files with a header row require skipLeadingRows: 1 in the load config; omitting this causes the header to be inserted as a data row.","Specifying autodetect: true for schema inference works for simple types but may mistype numeric columns as strings; prefer an explicit schema for production loads."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:33.807Z"},"url":"https://mcp.waymark.network/r/d4e0ffa1-bc36-457d-95f6-027a4e5c0a46"}