tarantool / ddl

The DDL module enables you to describe data schema in a declarative YAML-based format.
BSD 2-Clause "Simplified" License
12 stars 6 forks source link

Check input parameters and output values for sharding function #79

Closed ligurio closed 2 years ago

ligurio commented 2 years ago

In #71 we will add a section with sharding function to DDL schema and in #76 we will add a method that will calculate bucket id using sharding function specified in DDL schema. I think we need to check sharding function specified in DDL schema for input arguments and make sure that function returns a number. Otherwise sharding will not work.

ligurio commented 2 years ago

https://github.com/tarantool/ddl/pull/80#discussion_r738106037