I have temp table where data is loaded from a cloud storage and a main table which is partitioned by "tdate" and clustered by "serid"
tdate and serid columns exists in temp table and tdate is like this format "YYYY-MM-DD" and serid is integer number
I know how to write query results like below.
CREATE TABLE `[project].[dataset].[dest table]`
PARTITION BY tdate
CLUSTER BY serid
AS
SELECT * FROM `[project].[dataset].[table]`;
Can somebody tell me how can i achieve this to append data from temp table to main table using bq command or in python
p:s Im new to gcp and just started today