Skip to content
Snippets Groups Projects
  1. Oct 15, 2017
  2. Oct 14, 2017
    • Vladislav Shpilevoy's avatar
      tuple: set max tuple size on restart · caacfef1
      Vladislav Shpilevoy authored
      Closes #2773
      caacfef1
    • Roman Tsisyk's avatar
      alter: store index part format in simple format when possible · 2249764c
      Roman Tsisyk authored
      After implementing of #2802 many user started to complain about
      sudden change of _index system space format.
      
      Since both formats (new and old) are fully supported it is possible
      to store part definition in old format if there are no collation or
      other special options. Make it.
      
      Closes #2802
      2249764c
    • Roman Tsisyk's avatar
      Review fixes for NULLs in indexes · 30ae1461
      Roman Tsisyk authored
      - Forbid get(), update(), delete() with NULLS
      - Improve is_nullable checking in ALTER
      - Set default value for is_nullable from space:format()
      - Rename primary_key_validate() to exact_key_validate()
      
      Follow up #1557
      30ae1461
    • Vladislav Shpilevoy's avatar
      Allow to insert multiple NULLs in unique indexes · 828dd411
      Vladislav Shpilevoy authored
      Use extended key parts to compare tuples, containing NULLs in the
      base key parts.
      
      Closes #1557
      828dd411
    • Vladislav Shpilevoy's avatar
      Introduce key_def.unique_part_count · 0ade89b8
      Vladislav Shpilevoy authored
      Unique part count is a minimal part count which always is unique.
      For example, if a secondary index is unique, then
      unique_part_count == secondary index part count. But if a secondary
      index is not unique, then unique_part_count == part count of a merged key_def.
      
      Needed for #1557
      0ade89b8
    • Vladislav Shpilevoy's avatar
      Introduce 'nullable' option for field · 2cdae722
      Vladislav Shpilevoy authored
      Store nullable in field_def, tuple_field, key_def and key_part.
      Key_def is nullable if at least one part references to a nullable field.
      
      Needed for #1557
      2cdae722
    • Vladislav Shpilevoy's avatar
      alter: do not rebuild index if key part was extended · a1b4326e
      Vladislav Shpilevoy authored
      If the only change is a new type of a key_def part and a new type
      can store values of an old type, then do not rebuild index.
      a1b4326e
    • Vladislav Shpilevoy's avatar
      alter: restrict space format altering · 91287a76
      Vladislav Shpilevoy authored
      Disallow changing field type of space format fields to an
      incompatible type.
      For example, forbid changing a type from integer to string,
      but allow to change from integer to number.
      
      If an user adds new fields, then validate existing tuples to be
      compatible with a new format. Check works in O(N) time and for
      big spaces can be realy long. But it can be skipped, if conditions
      below are ok:
      1. if space format field count < old tuple format field count. Then
         field count of all tuples >= new format field count;
      2. new fields are indexed or have type ANY. If a field is already
         indexed, then its type is already validated. If a field has
         type ANY, then any value is ok.
      
      Closes #2800
      91287a76
  3. Oct 13, 2017
  4. Oct 12, 2017
Loading