Hello,
I am thriving with an issue in Composer that does not occur in a local installation of Airflow 1.9.0.
I want to load records to a daily partitioned table in an idempotent way. The table is configured to time partition on a field called updated_on. Normally I would specify dataset.table$partition with WRITE_TRUNCATE to achieve this, so I can upload the same set of records of a given day any number of times without messing it up.
The error is:
BigQuery job failed. Final error was: {u'reason': u'invalid',
u'message': u'Incompatible table partitioning specification. Expects
partitioning specification interval(type:day,field:updated_on), but
input partitioning specification is interval(type:day)'}
If I try to fix this setting time_partitioning={'type':'day','field':'updated_on'} on the operator, the following error shows up:
airflow.exceptions.AirflowException: Cannot specify field partition and partition name (dataset.table$partition) at the same time
And if I use field partition without partition name the job finishes but all the whole table gets truncated.
Thanks in advance.
Matías