I have a table with columns repeated and not repeated.
{
"Id": "0",
"textField": [
"value1",
"value2",
"value3"
],
"numericField": [
"10"
],
"dateField": "2016-02-24 15:48:00 UTC"
}
Id INTEGER REQUIRED
textField STRING REPEATED
numericField INTEGER REPEATED
dateField TIMESTAMP NULLABLE
But the "textField" field must be REPEATED and the "numericField" field must be no REPEATED.
I tryed to copy the information into another table with the changed fields but this replaces my fields and let me fields REPEATED https://cloud.google.com/bigquery/docs/tables#copyingtable
I tryed to create a table from a query but I do not know how to define the query so that the "textField" field that is "REPEATED" does not change and the "numericField" becomes into not REPEATED. https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.query.tableDefinitions
how do I change the field without losing information?