The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user amirmor1 (triggered by amirmor1).

Head commit for run:
46d67e3abaa2e1c085bf53d319738f1863aca9b0 / Amir Mor <amir.mo...@gmail.com>
Fix Dataplex Data Quality Task partial update

When we try to update dataplex data quality task using the 
DataplexCreateOrUpdateDataQualityScanOperator, it will first try to create the 
task, and only if it fails with AlreadyExists exception, it will try to update 
the task, but if you want to provide a partial parameters to the update (and 
not to replace the entire data scan properties), it will fail with 
AirflowException `Error creating Data Quality scan` because its missing 
mandatory parameters in the DataScan, and will never update the task.

I've added a check to see if update_mask is not None, first try to do this 
update, and only if not -> try to create the task.
Also moved the update section into a private function to reuse it this check, 
and later if we are trying to do a full update of the task

Report URL: https://github.com/apache/airflow/actions/runs/11959091916

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscr...@airflow.apache.org
For additional commands, e-mail: jobs-h...@airflow.apache.org

Reply via email to