You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, it would be helpful to know which rows failed the constraint if my data does not meet a constraint I specified.
Expected behavior
Augment the current error message that a user gets when their data fails constraint validation.
Print the first five rows that fail
If more than 5 rows fail print the number of extra rows as follows:: +X more
Only print the columns needed by the constraint
Change the way we validate constraints to catch all of the errors and surface them at once. Ie. instead of failing on the first invalid constraint, validate all of them and then surface those errors together
Here are some examples:
ConstraintsNotMetError: Data is not valid for the 'GreaterThan' constraint:
parent_age child_age
10 13 32
20 34 50
23 10 37
80 0 1
81 -1 50
+50 more
Data is not valid for the 'Unique' constraint:
first_name last_name
45 'Annie' 'Hall'
14 'Harry' 'Potter'
98 'Harry' 'Potter'
The text was updated successfully, but these errors were encountered:
Problem Description
As a user, it would be helpful to know which rows failed the constraint if my data does not meet a constraint I specified.
Expected behavior
+X more
Here are some examples:
The text was updated successfully, but these errors were encountered: