0

I have a file at Linux server which I have uploaded to gcs bucket location

[xyz@innolx20122 ~]$ cat test.json
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      row_to_json                                                                                                                                                                                                                                                                                                                                                                                                                                                             
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{"technology":"AAA","vendor":"XYZ","data_metadata":"{\"name\": \"RRRRR\", \"unit\": \"hour\", \"intervals_seconds\": [[1609941600, 1609945200]], \"identifier_names\": [\"REGION\", \"NETWORK\"], \"vendor\": \"XYZ\", \"local_unit\": \"cell\"}}

and I am trying to upload this file to big query table

bq load --autodetect --source_format=NEWLINE_DELIMITED_JSON --allow_quoted_newlines --allow_jagged_rows --ignore_unknown_values test-project:test_dataset.test_table "gs://test-bucket-01/test/test.json"

I am getting below error

BigQuery error in load operation: Error processing job 'test-project:bqjob_r40c64d19722235a8_00000176d921c368_1': Error while reading data,
error message: Failed to parse JSON: Unexpected token; Parser terminated before end of string

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.