I am trying to append the results of a query to an existing table that has the same schema as the result of the query, except that some of the fields in the existing table are required.
This is the error for all the required fields when I try and run the query:
Invalid schema update. Field user has changed mode from REQUIRED to NULLABLE
When I write the results of the query to a new table it has the same name and types for all the fields, however the mode for all the fields is NULLABLE (except for 1 repeated field). I've tried using AND user IS NOT NULL
for all the required fields with no luck. I've also tried saving the results of the query to a separate table then modifying its schema, but BQ doesn't allow required fields to be set retroactively on a table.