mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 08:30:35 +00:00
Some of the fields in the schema will not not be passed directly, but calculated by the schema_builder. This is because they are not simple values of the form a = x, but slightly more complex and have to be derived from other properties (for instance, the amount of clustering keys). For those values, a default value does not really make sense. Take for instance the case of the comparator: there is always a comparator, and there is not any comparator that can serve as a default. Which comparator to use depend on whether or not the table has collections, whether or not it has clustering keys, and whether or not it is marked as compact storage. Making all tables go through the builder is a guarantee that all of them will have their values set. Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>