how can I upload a gzipped json file to bigquery via the HTTP API? -
when try upload uncompressed json file, works fine; when try gzipped version of same json file, job fail lexical error resulted failure parse json content.
i gzipped json file gzip command mac osx 10.8 , have set sourceformat to: "newline_delimited_json".
did incorrectly or gzipped json file should processed differently?
i believe using multipart/related request not possible submit binary data (such compressed file. however, if don't want use uncompressed data, may able use resumable upload.
what language coding in? python jobs.insert() api takes media upload parameter, should able give filename in order resumable upload (which sends job metadata , new table data separate streams). able use upload compressed file.
this bq.py uses, @ source code here.
if aren't using python, googleapis client libraries other languages should have similar functionality.
Comments
Post a Comment