Public bug reported:

localhost> space = box.schema.create_space('tweedledum', { id = 0 })
---
...
localhost> space:create_index('primary', 'hash', { parts = { 0, 'num' }})
---
...

localhost> box.space[0].index[0]:alter({name="pk_v2", parts={0, 'str'}})
---
...
localhost> box.space[0].index[0]
---
- unique: true
  idx: index 0
  n: 0
  type: HASH
  key_field:
    0:
      type: NUM <-- Hasn't changed
      fieldno: 0
  name: pk_v2 <-- Has changed
  id: 0
...

** Affects: tarantool
     Importance: Undecided
     Assignee: Kostja Osipov (kostja)
         Status: New

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1229711

Title:
  box.space[x].index[x].alter does not change index parts

Status in Tarantool - an efficient in-memory data store:
  New

Bug description:
  localhost> space = box.schema.create_space('tweedledum', { id = 0 })
  ---
  ...
  localhost> space:create_index('primary', 'hash', { parts = { 0, 'num' }})
  ---
  ...

  localhost> box.space[0].index[0]:alter({name="pk_v2", parts={0, 'str'}})
  ---
  ...
  localhost> box.space[0].index[0]
  ---
  - unique: true
    idx: index 0
    n: 0
    type: HASH
    key_field:
      0:
        type: NUM <-- Hasn't changed
        fieldno: 0
    name: pk_v2 <-- Has changed
    id: 0
  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1229711/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to