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
When using dolt table import -c, we currently do not follow the rule that primary keys may not contain any NULLs. This will put the table into an invalid state. It can be reproduced by:
$ dolt init
Successfully initialized dolt data repository.
$ cat <<DELIM > null-pk.csvpk,v1"a",1,2DELIM
$ dolt table import -c --pk=pk test null-pk.csv
Rows Processed: 2, Additions: 2, Modifications: 0, Had No Effect: 0
Import completed successfully.
$ dolt sql -q "select * from test"
+------+----+
| pk | v1 |
+------+----+
| a | 1 || NULL | 2 |
+------+----+
$ dolt sql -q "update test set pk = 'b' where pk is null"
column <pk> received nil but is non-nullable
The text was updated successfully, but these errors were encountered:
When using
dolt table import -c
, we currently do not follow the rule that primary keys may not contain anyNULL
s. This will put the table into an invalid state. It can be reproduced by:The text was updated successfully, but these errors were encountered: