You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BigQuery on python. upload_from_file job not done #3343
Yes, JSON is supported. Keep in mind that it's "Newline Delimited". That means each row not table is a separate JSON object, each separated by a newline.
I recommend using the bq command line tool to experiment with the file format & schema. Once you have a file that BigQuery accepts, then you can automate it with this library. https://cloud.google.com/bigquery/bq-command-line-tool
@patitonav I am going to pre-emptively close this, since it seems your issue is with your data formatting and this isn't really an issue with this library.
Activity
dhermes commentedon Apr 28, 2017
@tswast Is JSON even supported as an upload type? (
source_format='NEWLINE_DELIMITED_JSON'seems to indicate yes)tswast commentedon Apr 28, 2017
Yes, JSON is supported. Keep in mind that it's "Newline Delimited". That means each row not table is a separate JSON object, each separated by a newline.
patitonav commentedon Apr 28, 2017
tswast commentedon Apr 28, 2017
I recommend using the
bqcommand line tool to experiment with the file format & schema. Once you have a file that BigQuery accepts, then you can automate it with this library. https://cloud.google.com/bigquery/bq-command-line-tooldhermes commentedon Apr 28, 2017
@patitonav I am going to pre-emptively close this, since it seems your issue is with your data formatting and this isn't really an issue with this library.
Let me know if you'd like to re-open this issue.
Thanks for the assist @tswast, helpful as always!
chore(deps): bump urllib3 from 2.0.7 to 2.2.2 in /.kokoro (#12803)
samples: add samples from pubsub/cloud-client (#134)
Update dependency google-cloud-pubsub to v1.4.2 in Storage and Pub/Su…
samples: add cloud client samples from python-docs-samples (#626)