jason810496 commented on PR #44322:
URL: https://github.com/apache/airflow/pull/44322#issuecomment-2525551172

   Hi @pierrejeambrun, @ephraimbuddy,
   
   I’ve refactored the `_UniqueConstraintErrorHandler` to provide unified error 
details across all database dialects by parsing errors with `re2`. If the 
parsing fails, it defaults to returning the original database error.
   
   I’ve also added tests for the unique constraint handler, covering the 
following cases:
   - Inserting a duplicate entry for a single-column unique constraint (e.g., 
`Pool`, `Variable`).
   - Inserting a duplicate entry for a multi-column unique constraint (e.g., 
`dag_id` and `run_id` pair in `DagRun`).
   - Handling cases where the database error message parsing fails.
   
   Looking forward to your feedback and suggestions!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to