I have the following sheduled querie, im just trying to append data every day but it is giving me the an error:
SELECT
PARSE_DATE('%Y%m%d',event_date) AS fecha,
indicador
FROM `TABLE_*`
WHERE _TABLE_SUFFIX BETWEEN
FORMAT_DATE("%Y%m%d", DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)) AND
FORMAT_DATE("%Y%m%d", DATE_SUB(CURRENT_DATE(), INTERVAL 0 DAY))
GROUP BY
event_date,indicador
ERROR:
Incompatible table partitioning specification. Destination table exists with partitioning specification interval(type:DAY,field:fecha) clustering(indicador), but transfer target partitioning specification is interval(type:DAY,field:fecha). Please retry after updating either the destination table or the transfer partitioning specification.
DESTINATION TABLE:
Table type: Partitioned Partitioned by: Day Partitioned on field: fecha Partition filter: Not required Clustered by: indicador
I believe there is a problem with "clustering" is there a way to shedule an insert (append) on a clustered table ?