Open ligurio opened 3 years ago
The decision to make it so strict was conscious. We've interviewed many vshard users, and they all agreed that the custom sharding index is confusing.
Well, let's wait until someone will ask for that.
More on the topic:
https://github.com/tarantool/ddl/blob/master/ddl/check.lua#L641
index of %s type can't be composite
This is not a correct statement.
We always use a composite index for sharding. The tail of such index is a surrogate or natural key and whole index is primary key for space.
vshard configuration has an option to specify a name or id of sharding index, by default it values is 'bucket_id'. It's up to the user to change it or keep the default value [1].
Source code of
ddl/check.lua
has a wrong assumption for sharding index name: