Am I misunderstanding how Unique Keys in a Sharded (columnstore) table should work?

Hi,

Singlestore 8.0.9 ; the cluster was originally built as 7.8 and has been upgraded several times since the tables were created.

We have a (large) Columnstore with approximately 208Million rows; we’ve discovered that we have approximately 42k rows that are duplicates according to the Unique Key we have on the table.

The shard key: a,b
Unique key: a,b,c,d,e,f,g,h,i,j,k

Some of the unique key fields are NULLable … could this be what’s allowing duplicate rows to be created ?

Yes. If there are NULL values in a record that are part of the unique key, a duplicate key error will not be generated. This follows the SQL standard.