File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/core/src/operations Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,11 @@ impl std::future::IntoFuture for ConstraintBuilder {
158158 // when the expression is different in the conflicted constraint --> error out due not knowing how to resolve it
159159 if !metadata. configuration ( ) [ configuration_key] . eq ( & constraints_sql_mapper[ name] ) {
160160 return Err ( DeltaTableError :: Generic ( format ! (
161- "Constraint with name: {name} already exists and Expression is different"
162- ) ) ) ;
161+ "Cannot add constraint '{name}': a constraint with this name already exists with a different expression. Existing: '{}', New: '{}'" ,
162+ metadata. configuration( ) [ configuration_key] , constraints_sql_mapper[ name]
163+ ) ) ) ;
163164 }
165+ tracing:: warn!( "Skipping constraint '{name}': identical constraint already exists with expression '{}'" , constraints_sql_mapper[ name] ) ;
164166 }
165167 let constraints_checker: Vec < Constraint > = constraints_sql_mapper
166168 . iter ( )
You can’t perform that action at this time.
0 commit comments