space[0].index[0].type = "TREE" space[0].index[0].unique = 1 space[0].index[0].key_field[0].fieldno = 0 space[0].index[0].key_field[0].type = "NUM"
space[0].index[1].key_field[1 <!--].fieldno = 2 space[0].index[1].key_field[1 <!--].type = "NUM" also doesn't work -- You received this bug notification because you are a member of Tarantool Development Team, which is subscribed to tarantool. https://bugs.launchpad.net/bugs/1082356 Title: Multipart Tree Index crashes if key fields are not configured in the sequential order Status in Tarantool - an efficient in-memory data store: New Bug description: # primary key. space[0].enabled = 1 space[0].index[0].type = "TREE" space[0].index[0].unique = 1 space[0].index[0].key_field[0].fieldno = 0 space[0].index[0].key_field[0].type = "NUM" space[0].index[0].key_field[0].fieldno = 2 <!-- HERE space[0].index[0].key_field[0].type = "NUM" INSERT INTO t0 VALUES (1,2) tarantool-master/src/box/tree.m:307: fold_with_sparse_parts: assertion field < tuple->field_count failed. (gdb) backtrace #0 0x00007ffff6ec9475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff6ecc6f0 in *__GI_abort () at abort.c:92 #2 0x000000000044d067 in assert_fail (assertion=assertion@entry=0x4cf3ce "field < tuple->field_count", file=file@entry=0x4cf1a8 "/data/work/tarantool-master/src/box/tree.m", line=line@entry=307, function=function@entry=0x4cf4b0 "fold_with_sparse_parts") at /data/work/tarantool-master/src/util.m:300 #3 0x000000000041a3b0 in fold_with_sparse_parts (key_def=0x770f10, tuple=0x7fffb6c00060, parts=parts@entry=0x7fffb6275d50) at /data/work/tarantool-master/src/box/tree.m:307 #4 0x000000000041c2e1 in -[TreeIndex findByTuple:] (self=0x7755c8, _cmd=<optimized out>, tuple=<optimized out>) at /data/work/tarantool-master/src/box/tree.m:909 #5 0x00000000004236ce in execute_replace (txn=0x7fffb625e038, request=0x7fffb625e078) at /data/work/tarantool-master/src/box/request.m:90 #6 request_execute (request=request@entry=0x7fffb625e078, txn=txn@entry=0x7fffb625e038, port=port@entry=0x7fffb6275f10) at /data/work/tarantool-master/src/box/request.m:834 #7 0x00000000004247e7 in box_process_rw (port=0x7fffb6275f10, op=13, data=<optimized out>) at /data/work/tarantool-master/src/box/box.m:97 #8 0x0000000000457400 in iproto_reply (header=0x7ffff7fe9038, out=0x7ffff7ff1370, callback=<optimized out>, port=0x7fffb6275f10) at /data/work/tarantool-master/src/iproto.m:593 #9 iproto_handler (arg=<optimized out>) at /data/work/tarantool-master/src/iproto.m:621 #10 0x000000000044633e in fiber_loop (data=<optimized out>) at /data/work/tarantool-master/src/fiber.m:364 #11 0x0000000000463070 in coro_init () at /data/work/tarantool-master/third_party/coro/coro.c:95 To manage notifications about this bug go to: https://bugs.launchpad.net/tarantool/+bug/1082356/+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

