Include indices of duplicate rows in the Non_Unique_Primary_Key
error
#6437
Labels
-libs
Libraries: New libraries to be implemented
l-db-write
Libraries: database writer
p-lowest
Should be completed at some point
Milestone
As discussed, it could be useful to include the indices of duplicate rows in the error indicating that the selected primary key was not unique.
To not stall that PR, since this has a lower priority, it's separated into this task.
duplicate_rows : Vector Integer
field toNon_Unique_Primary_Key.Error
.to_display_text
to display what rows were duplicated.If we have a table
and set the primary key to be
X
, we have valuesa
andb
duplicated - soduplicated_rows
should contain rows of one of these groups - i.e. it should either be[0, 2, 3]
or[1, 4]
(and it is unspecified which one). It shouldn't be[0, 1, 2, 3, 4]
- if we include duplicates from all groups, in some cases we could just list all rows of a table (if every row has some duplicate) and that would not be helpful.The text was updated successfully, but these errors were encountered: