I'm trying to load JSON data to BigQuery. The excerpt of my data causing problems looks like that:
{"page":"295"}
{"page":["295", "123"]}
I have defined schema for this field to be:
{
"name": "page",
"type": "string",
"mode": "repeated"
}
I'm getting an error of "Repeated field must be imported as a JSON array." I think the problem is caused by the structure of the JSON itself. The string in the first row should be 1 element array instead of just a string. The data was delivered to me like this. I am trying to find a way to force BigQuery to read this string as a one element array instead of fixing the file (which is hundred gigabytes). Is there any solution?