I'm trying to update an array of records within BigQuery. We're currently using the GUI mode, but get the following error:
Value of type ARRAY<STRUCT<video_id INT64, date_added STRUCT<value STRING>>> cannot be assigned to videos, which has type ARRAY<STRUCT<video_id INT64, date_added DATETIME>> at [1:48]
It seems that no matter how I try to format the datetime stamp using new Date() or moment, it's always being sent as a String. How can I make sure that it's always datetime?
The only workaround that I've seen are to use manual SQL but due to the nature of our query that would also require us to disable prepared statements, which we want to avoid.
I've had a search on the forum but struggled to find something applicable