Skip to content
Snippets Groups Projects
Commit faa76280 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Konstantin Osipov
Browse files

schema: allow to define multiple types for one space field

On a single field two restrictions exist: tuple format and index part.

The proposal is to allow to use different types for different restrictions,
if these types are compatible. And for tuples validation use the most
strict type.

For example, one field can be number in space format, unsigned in one index,
integer in another index and scalar in a third index. Configuration like this
can be allowed, because all of these types can store unsigned. And unsigned is
used to validate tuples.

Besides, it allows incremental DDL. For example, now if you want to change a
type of a field, which is used by several indexes, then it is impossible on
a non-empty space, even if a new type is less strict than the old one.
Lets allow this too.

Closes #3008
parent c0ef6821
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment