From 95f9e77e42131170697d98bd0350afb9655d0453 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko <pmwkaa@gmail.com> Date: Wed, 28 Aug 2013 17:46:31 +0400 Subject: [PATCH] lua-plus-dict: convert 'big' tests to new tuple output format --- test/big/bitset.result | 2434 ++++++++++++++--------------- test/big/hash.result | 218 +-- test/big/hash_multipart.result | 58 +- test/big/iterator.result | 1096 ++++++------- test/big/sql.result | 52 +- test/big/tree_pk.result | 196 +-- test/big/tree_pk_multipart.result | 226 +-- test/big/tree_variants.result | 138 +- 8 files changed, 2209 insertions(+), 2209 deletions(-) diff --git a/test/big/bitset.result b/test/big/bitset.result index 531ac521de..148a9eaa6b 100644 --- a/test/big/bitset.result +++ b/test/big/bitset.result @@ -12,7 +12,7 @@ create_space() ------------------------------------------------------------------------------ test_insert_delete(128) --- -- $ 1$ +- - $ 1$ ... ------------------------------------------------------------------------------ -- BitsetIndex: ALL @@ -25,1339 +25,1339 @@ fill(1, 128) ... dump(box.index.BITS_ALL) --- -- $ 1$ -- $ 2$ -- $ 3$ -- $ 4$ -- $ 5$ -- $ 6$ -- $ 7$ -- $ 8$ -- $ 9$ -- $ 10$ -- $ 11$ -- $ 12$ -- $ 13$ -- $ 14$ -- $ 15$ -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 32$ -- $ 33$ -- $ 34$ -- $ 35$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 40$ -- $ 41$ -- $ 42$ -- $ 43$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 64$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 72$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 96$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 104$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ -- $ 128$ +- - $ 1$ + - $ 2$ + - $ 3$ + - $ 4$ + - $ 5$ + - $ 6$ + - $ 7$ + - $ 8$ + - $ 9$ + - $ 10$ + - $ 11$ + - $ 12$ + - $ 13$ + - $ 14$ + - $ 15$ + - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 32$ + - $ 33$ + - $ 34$ + - $ 35$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 40$ + - $ 41$ + - $ 42$ + - $ 43$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 64$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 72$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 96$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 104$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ + - $ 128$ ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ALL_SET (single bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ALL_SET, 0) --- -{} +- {} ... dump(box.index.BITS_ALL_SET, 1) --- -- $ 1$ -- $ 3$ -- $ 5$ -- $ 7$ -- $ 9$ -- $ 11$ -- $ 13$ -- $ 15$ -- $ 17$ -- $ 19$ -- $ 21$ -- $ 23$ -- $ 25$ -- $ 27$ -- $ 29$ -- $ 31$ -- $ 33$ -- $ 35$ -- $ 37$ -- $ 39$ -- $ 41$ -- $ 43$ -- $ 45$ -- $ 47$ -- $ 49$ -- $ 51$ -- $ 53$ -- $ 55$ -- $ 57$ -- $ 59$ -- $ 61$ -- $ 63$ -- $ 65$ -- $ 67$ -- $ 69$ -- $ 71$ -- $ 73$ -- $ 75$ -- $ 77$ -- $ 79$ -- $ 81$ -- $ 83$ -- $ 85$ -- $ 87$ -- $ 89$ -- $ 91$ -- $ 93$ -- $ 95$ -- $ 97$ -- $ 99$ -- $ 101$ -- $ 103$ -- $ 105$ -- $ 107$ -- $ 109$ -- $ 111$ -- $ 113$ -- $ 115$ -- $ 117$ -- $ 119$ -- $ 121$ -- $ 123$ -- $ 125$ -- $ 127$ +- - $ 1$ + - $ 3$ + - $ 5$ + - $ 7$ + - $ 9$ + - $ 11$ + - $ 13$ + - $ 15$ + - $ 17$ + - $ 19$ + - $ 21$ + - $ 23$ + - $ 25$ + - $ 27$ + - $ 29$ + - $ 31$ + - $ 33$ + - $ 35$ + - $ 37$ + - $ 39$ + - $ 41$ + - $ 43$ + - $ 45$ + - $ 47$ + - $ 49$ + - $ 51$ + - $ 53$ + - $ 55$ + - $ 57$ + - $ 59$ + - $ 61$ + - $ 63$ + - $ 65$ + - $ 67$ + - $ 69$ + - $ 71$ + - $ 73$ + - $ 75$ + - $ 77$ + - $ 79$ + - $ 81$ + - $ 83$ + - $ 85$ + - $ 87$ + - $ 89$ + - $ 91$ + - $ 93$ + - $ 95$ + - $ 97$ + - $ 99$ + - $ 101$ + - $ 103$ + - $ 105$ + - $ 107$ + - $ 109$ + - $ 111$ + - $ 113$ + - $ 115$ + - $ 117$ + - $ 119$ + - $ 121$ + - $ 123$ + - $ 125$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 2) --- -- $ 2$ -- $ 3$ -- $ 6$ -- $ 7$ -- $ 10$ -- $ 11$ -- $ 14$ -- $ 15$ -- $ 18$ -- $ 19$ -- $ 22$ -- $ 23$ -- $ 26$ -- $ 27$ -- $ 30$ -- $ 31$ -- $ 34$ -- $ 35$ -- $ 38$ -- $ 39$ -- $ 42$ -- $ 43$ -- $ 46$ -- $ 47$ -- $ 50$ -- $ 51$ -- $ 54$ -- $ 55$ -- $ 58$ -- $ 59$ -- $ 62$ -- $ 63$ -- $ 66$ -- $ 67$ -- $ 70$ -- $ 71$ -- $ 74$ -- $ 75$ -- $ 78$ -- $ 79$ -- $ 82$ -- $ 83$ -- $ 86$ -- $ 87$ -- $ 90$ -- $ 91$ -- $ 94$ -- $ 95$ -- $ 98$ -- $ 99$ -- $ 102$ -- $ 103$ -- $ 106$ -- $ 107$ -- $ 110$ -- $ 111$ -- $ 114$ -- $ 115$ -- $ 118$ -- $ 119$ -- $ 122$ -- $ 123$ -- $ 126$ -- $ 127$ +- - $ 2$ + - $ 3$ + - $ 6$ + - $ 7$ + - $ 10$ + - $ 11$ + - $ 14$ + - $ 15$ + - $ 18$ + - $ 19$ + - $ 22$ + - $ 23$ + - $ 26$ + - $ 27$ + - $ 30$ + - $ 31$ + - $ 34$ + - $ 35$ + - $ 38$ + - $ 39$ + - $ 42$ + - $ 43$ + - $ 46$ + - $ 47$ + - $ 50$ + - $ 51$ + - $ 54$ + - $ 55$ + - $ 58$ + - $ 59$ + - $ 62$ + - $ 63$ + - $ 66$ + - $ 67$ + - $ 70$ + - $ 71$ + - $ 74$ + - $ 75$ + - $ 78$ + - $ 79$ + - $ 82$ + - $ 83$ + - $ 86$ + - $ 87$ + - $ 90$ + - $ 91$ + - $ 94$ + - $ 95$ + - $ 98$ + - $ 99$ + - $ 102$ + - $ 103$ + - $ 106$ + - $ 107$ + - $ 110$ + - $ 111$ + - $ 114$ + - $ 115$ + - $ 118$ + - $ 119$ + - $ 122$ + - $ 123$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 8) --- -- $ 8$ -- $ 9$ -- $ 10$ -- $ 11$ -- $ 12$ -- $ 13$ -- $ 14$ -- $ 15$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 40$ -- $ 41$ -- $ 42$ -- $ 43$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 72$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 104$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ +- - $ 8$ + - $ 9$ + - $ 10$ + - $ 11$ + - $ 12$ + - $ 13$ + - $ 14$ + - $ 15$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 40$ + - $ 41$ + - $ 42$ + - $ 43$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 72$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 104$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 1073741824) --- -{} +- {} ... dump(box.index.BITS_ALL_SET, 2147483648) --- -{} +- {} ... dump(box.index.BITS_ALL_SET, 4294967296) --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM' ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ALL_SET (multiple bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ALL_SET, 3) --- -- $ 3$ -- $ 7$ -- $ 11$ -- $ 15$ -- $ 19$ -- $ 23$ -- $ 27$ -- $ 31$ -- $ 35$ -- $ 39$ -- $ 43$ -- $ 47$ -- $ 51$ -- $ 55$ -- $ 59$ -- $ 63$ -- $ 67$ -- $ 71$ -- $ 75$ -- $ 79$ -- $ 83$ -- $ 87$ -- $ 91$ -- $ 95$ -- $ 99$ -- $ 103$ -- $ 107$ -- $ 111$ -- $ 115$ -- $ 119$ -- $ 123$ -- $ 127$ +- - $ 3$ + - $ 7$ + - $ 11$ + - $ 15$ + - $ 19$ + - $ 23$ + - $ 27$ + - $ 31$ + - $ 35$ + - $ 39$ + - $ 43$ + - $ 47$ + - $ 51$ + - $ 55$ + - $ 59$ + - $ 63$ + - $ 67$ + - $ 71$ + - $ 75$ + - $ 79$ + - $ 83$ + - $ 87$ + - $ 91$ + - $ 95$ + - $ 99$ + - $ 103$ + - $ 107$ + - $ 111$ + - $ 115$ + - $ 119$ + - $ 123$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 7) --- -- $ 7$ -- $ 15$ -- $ 23$ -- $ 31$ -- $ 39$ -- $ 47$ -- $ 55$ -- $ 63$ -- $ 71$ -- $ 79$ -- $ 87$ -- $ 95$ -- $ 103$ -- $ 111$ -- $ 119$ -- $ 127$ +- - $ 7$ + - $ 15$ + - $ 23$ + - $ 31$ + - $ 39$ + - $ 47$ + - $ 55$ + - $ 63$ + - $ 71$ + - $ 79$ + - $ 87$ + - $ 95$ + - $ 103$ + - $ 111$ + - $ 119$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 31) --- -- $ 31$ -- $ 63$ -- $ 95$ -- $ 127$ +- - $ 31$ + - $ 63$ + - $ 95$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 5) --- -- $ 5$ -- $ 7$ -- $ 13$ -- $ 15$ -- $ 21$ -- $ 23$ -- $ 29$ -- $ 31$ -- $ 37$ -- $ 39$ -- $ 45$ -- $ 47$ -- $ 53$ -- $ 55$ -- $ 61$ -- $ 63$ -- $ 69$ -- $ 71$ -- $ 77$ -- $ 79$ -- $ 85$ -- $ 87$ -- $ 93$ -- $ 95$ -- $ 101$ -- $ 103$ -- $ 109$ -- $ 111$ -- $ 117$ -- $ 119$ -- $ 125$ -- $ 127$ +- - $ 5$ + - $ 7$ + - $ 13$ + - $ 15$ + - $ 21$ + - $ 23$ + - $ 29$ + - $ 31$ + - $ 37$ + - $ 39$ + - $ 45$ + - $ 47$ + - $ 53$ + - $ 55$ + - $ 61$ + - $ 63$ + - $ 69$ + - $ 71$ + - $ 77$ + - $ 79$ + - $ 85$ + - $ 87$ + - $ 93$ + - $ 95$ + - $ 101$ + - $ 103$ + - $ 109$ + - $ 111$ + - $ 117$ + - $ 119$ + - $ 125$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 10) --- -- $ 10$ -- $ 11$ -- $ 14$ -- $ 15$ -- $ 26$ -- $ 27$ -- $ 30$ -- $ 31$ -- $ 42$ -- $ 43$ -- $ 46$ -- $ 47$ -- $ 58$ -- $ 59$ -- $ 62$ -- $ 63$ -- $ 74$ -- $ 75$ -- $ 78$ -- $ 79$ -- $ 90$ -- $ 91$ -- $ 94$ -- $ 95$ -- $ 106$ -- $ 107$ -- $ 110$ -- $ 111$ -- $ 122$ -- $ 123$ -- $ 126$ -- $ 127$ +- - $ 10$ + - $ 11$ + - $ 14$ + - $ 15$ + - $ 26$ + - $ 27$ + - $ 30$ + - $ 31$ + - $ 42$ + - $ 43$ + - $ 46$ + - $ 47$ + - $ 58$ + - $ 59$ + - $ 62$ + - $ 63$ + - $ 74$ + - $ 75$ + - $ 78$ + - $ 79$ + - $ 90$ + - $ 91$ + - $ 94$ + - $ 95$ + - $ 106$ + - $ 107$ + - $ 110$ + - $ 111$ + - $ 122$ + - $ 123$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 27) --- -- $ 27$ -- $ 31$ -- $ 59$ -- $ 63$ -- $ 91$ -- $ 95$ -- $ 123$ -- $ 127$ +- - $ 27$ + - $ 31$ + - $ 59$ + - $ 63$ + - $ 91$ + - $ 95$ + - $ 123$ + - $ 127$ ... dump(box.index.BITS_ALL_SET, 341) --- -{} +- {} ... dump(box.index.BITS_ALL_SET, 2147483649) --- -{} +- {} ... dump(box.index.BITS_ALL_SET, 4294967295) --- -{} +- {} ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ALL_NOT_SET (single bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ALL_NOT_SET, 0) --- -- $ 1$ -- $ 2$ -- $ 3$ -- $ 4$ -- $ 5$ -- $ 6$ -- $ 7$ -- $ 8$ -- $ 9$ -- $ 10$ -- $ 11$ -- $ 12$ -- $ 13$ -- $ 14$ -- $ 15$ -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 32$ -- $ 33$ -- $ 34$ -- $ 35$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 40$ -- $ 41$ -- $ 42$ -- $ 43$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 64$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 72$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 96$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 104$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ -- $ 128$ +- - $ 1$ + - $ 2$ + - $ 3$ + - $ 4$ + - $ 5$ + - $ 6$ + - $ 7$ + - $ 8$ + - $ 9$ + - $ 10$ + - $ 11$ + - $ 12$ + - $ 13$ + - $ 14$ + - $ 15$ + - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 32$ + - $ 33$ + - $ 34$ + - $ 35$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 40$ + - $ 41$ + - $ 42$ + - $ 43$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 64$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 72$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 96$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 104$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 2) --- -- $ 1$ -- $ 4$ -- $ 5$ -- $ 8$ -- $ 9$ -- $ 12$ -- $ 13$ -- $ 16$ -- $ 17$ -- $ 20$ -- $ 21$ -- $ 24$ -- $ 25$ -- $ 28$ -- $ 29$ -- $ 32$ -- $ 33$ -- $ 36$ -- $ 37$ -- $ 40$ -- $ 41$ -- $ 44$ -- $ 45$ -- $ 48$ -- $ 49$ -- $ 52$ -- $ 53$ -- $ 56$ -- $ 57$ -- $ 60$ -- $ 61$ -- $ 64$ -- $ 65$ -- $ 68$ -- $ 69$ -- $ 72$ -- $ 73$ -- $ 76$ -- $ 77$ -- $ 80$ -- $ 81$ -- $ 84$ -- $ 85$ -- $ 88$ -- $ 89$ -- $ 92$ -- $ 93$ -- $ 96$ -- $ 97$ -- $ 100$ -- $ 101$ -- $ 104$ -- $ 105$ -- $ 108$ -- $ 109$ -- $ 112$ -- $ 113$ -- $ 116$ -- $ 117$ -- $ 120$ -- $ 121$ -- $ 124$ -- $ 125$ -- $ 128$ +- - $ 1$ + - $ 4$ + - $ 5$ + - $ 8$ + - $ 9$ + - $ 12$ + - $ 13$ + - $ 16$ + - $ 17$ + - $ 20$ + - $ 21$ + - $ 24$ + - $ 25$ + - $ 28$ + - $ 29$ + - $ 32$ + - $ 33$ + - $ 36$ + - $ 37$ + - $ 40$ + - $ 41$ + - $ 44$ + - $ 45$ + - $ 48$ + - $ 49$ + - $ 52$ + - $ 53$ + - $ 56$ + - $ 57$ + - $ 60$ + - $ 61$ + - $ 64$ + - $ 65$ + - $ 68$ + - $ 69$ + - $ 72$ + - $ 73$ + - $ 76$ + - $ 77$ + - $ 80$ + - $ 81$ + - $ 84$ + - $ 85$ + - $ 88$ + - $ 89$ + - $ 92$ + - $ 93$ + - $ 96$ + - $ 97$ + - $ 100$ + - $ 101$ + - $ 104$ + - $ 105$ + - $ 108$ + - $ 109$ + - $ 112$ + - $ 113$ + - $ 116$ + - $ 117$ + - $ 120$ + - $ 121$ + - $ 124$ + - $ 125$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 8) --- -- $ 1$ -- $ 2$ -- $ 3$ -- $ 4$ -- $ 5$ -- $ 6$ -- $ 7$ -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 32$ -- $ 33$ -- $ 34$ -- $ 35$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 64$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 96$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 128$ +- - $ 1$ + - $ 2$ + - $ 3$ + - $ 4$ + - $ 5$ + - $ 6$ + - $ 7$ + - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 32$ + - $ 33$ + - $ 34$ + - $ 35$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 64$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 96$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 4294967296) --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM' ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ALL_NOT_SET (multiple bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ALL_NOT_SET, 3) --- -- $ 4$ -- $ 8$ -- $ 12$ -- $ 16$ -- $ 20$ -- $ 24$ -- $ 28$ -- $ 32$ -- $ 36$ -- $ 40$ -- $ 44$ -- $ 48$ -- $ 52$ -- $ 56$ -- $ 60$ -- $ 64$ -- $ 68$ -- $ 72$ -- $ 76$ -- $ 80$ -- $ 84$ -- $ 88$ -- $ 92$ -- $ 96$ -- $ 100$ -- $ 104$ -- $ 108$ -- $ 112$ -- $ 116$ -- $ 120$ -- $ 124$ -- $ 128$ +- - $ 4$ + - $ 8$ + - $ 12$ + - $ 16$ + - $ 20$ + - $ 24$ + - $ 28$ + - $ 32$ + - $ 36$ + - $ 40$ + - $ 44$ + - $ 48$ + - $ 52$ + - $ 56$ + - $ 60$ + - $ 64$ + - $ 68$ + - $ 72$ + - $ 76$ + - $ 80$ + - $ 84$ + - $ 88$ + - $ 92$ + - $ 96$ + - $ 100$ + - $ 104$ + - $ 108$ + - $ 112$ + - $ 116$ + - $ 120$ + - $ 124$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 7) --- -- $ 8$ -- $ 16$ -- $ 24$ -- $ 32$ -- $ 40$ -- $ 48$ -- $ 56$ -- $ 64$ -- $ 72$ -- $ 80$ -- $ 88$ -- $ 96$ -- $ 104$ -- $ 112$ -- $ 120$ -- $ 128$ +- - $ 8$ + - $ 16$ + - $ 24$ + - $ 32$ + - $ 40$ + - $ 48$ + - $ 56$ + - $ 64$ + - $ 72$ + - $ 80$ + - $ 88$ + - $ 96$ + - $ 104$ + - $ 112$ + - $ 120$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 10) --- -- $ 1$ -- $ 4$ -- $ 5$ -- $ 16$ -- $ 17$ -- $ 20$ -- $ 21$ -- $ 32$ -- $ 33$ -- $ 36$ -- $ 37$ -- $ 48$ -- $ 49$ -- $ 52$ -- $ 53$ -- $ 64$ -- $ 65$ -- $ 68$ -- $ 69$ -- $ 80$ -- $ 81$ -- $ 84$ -- $ 85$ -- $ 96$ -- $ 97$ -- $ 100$ -- $ 101$ -- $ 112$ -- $ 113$ -- $ 116$ -- $ 117$ -- $ 128$ +- - $ 1$ + - $ 4$ + - $ 5$ + - $ 16$ + - $ 17$ + - $ 20$ + - $ 21$ + - $ 32$ + - $ 33$ + - $ 36$ + - $ 37$ + - $ 48$ + - $ 49$ + - $ 52$ + - $ 53$ + - $ 64$ + - $ 65$ + - $ 68$ + - $ 69$ + - $ 80$ + - $ 81$ + - $ 84$ + - $ 85$ + - $ 96$ + - $ 97$ + - $ 100$ + - $ 101$ + - $ 112$ + - $ 113$ + - $ 116$ + - $ 117$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 27) --- -- $ 4$ -- $ 32$ -- $ 36$ -- $ 64$ -- $ 68$ -- $ 96$ -- $ 100$ -- $ 128$ +- - $ 4$ + - $ 32$ + - $ 36$ + - $ 64$ + - $ 68$ + - $ 96$ + - $ 100$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 85) --- -- $ 2$ -- $ 8$ -- $ 10$ -- $ 32$ -- $ 34$ -- $ 40$ -- $ 42$ -- $ 128$ +- - $ 2$ + - $ 8$ + - $ 10$ + - $ 32$ + - $ 34$ + - $ 40$ + - $ 42$ + - $ 128$ ... dump(box.index.BITS_ALL_NOT_SET, 4294967295) --- -{} +- {} ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ANY_SET (single bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ANY_SET, 0) --- -{} +- {} ... dump(box.index.BITS_ANY_SET, 16) --- -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ +- - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ANY_SET, 128) --- -- $ 128$ +- - $ 128$ ... dump(box.index.BITS_ANY_SET, 4294967296) --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM' ... ------------------------------------------------------------------------------ -- BitsetIndex: BITS_ANY_SET (multiple bit) ------------------------------------------------------------------------------ dump(box.index.BITS_ANY_SET, 7) --- -- $ 1$ -- $ 2$ -- $ 3$ -- $ 4$ -- $ 5$ -- $ 6$ -- $ 7$ -- $ 9$ -- $ 10$ -- $ 11$ -- $ 12$ -- $ 13$ -- $ 14$ -- $ 15$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 33$ -- $ 34$ -- $ 35$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 41$ -- $ 42$ -- $ 43$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ +- - $ 1$ + - $ 2$ + - $ 3$ + - $ 4$ + - $ 5$ + - $ 6$ + - $ 7$ + - $ 9$ + - $ 10$ + - $ 11$ + - $ 12$ + - $ 13$ + - $ 14$ + - $ 15$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 33$ + - $ 34$ + - $ 35$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 41$ + - $ 42$ + - $ 43$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ANY_SET, 84) --- -- $ 4$ -- $ 5$ -- $ 6$ -- $ 7$ -- $ 12$ -- $ 13$ -- $ 14$ -- $ 15$ -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 64$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 72$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 96$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 104$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ +- - $ 4$ + - $ 5$ + - $ 6$ + - $ 7$ + - $ 12$ + - $ 13$ + - $ 14$ + - $ 15$ + - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 64$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 72$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 96$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 104$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ ... dump(box.index.BITS_ANY_SET, 113) --- -- $ 1$ -- $ 3$ -- $ 5$ -- $ 7$ -- $ 9$ -- $ 11$ -- $ 13$ -- $ 15$ -- $ 16$ -- $ 17$ -- $ 18$ -- $ 19$ -- $ 20$ -- $ 21$ -- $ 22$ -- $ 23$ -- $ 24$ -- $ 25$ -- $ 26$ -- $ 27$ -- $ 28$ -- $ 29$ -- $ 30$ -- $ 31$ -- $ 32$ -- $ 33$ -- $ 34$ -- $ 35$ -- $ 36$ -- $ 37$ -- $ 38$ -- $ 39$ -- $ 40$ -- $ 41$ -- $ 42$ -- $ 43$ -- $ 44$ -- $ 45$ -- $ 46$ -- $ 47$ -- $ 48$ -- $ 49$ -- $ 50$ -- $ 51$ -- $ 52$ -- $ 53$ -- $ 54$ -- $ 55$ -- $ 56$ -- $ 57$ -- $ 58$ -- $ 59$ -- $ 60$ -- $ 61$ -- $ 62$ -- $ 63$ -- $ 64$ -- $ 65$ -- $ 66$ -- $ 67$ -- $ 68$ -- $ 69$ -- $ 70$ -- $ 71$ -- $ 72$ -- $ 73$ -- $ 74$ -- $ 75$ -- $ 76$ -- $ 77$ -- $ 78$ -- $ 79$ -- $ 80$ -- $ 81$ -- $ 82$ -- $ 83$ -- $ 84$ -- $ 85$ -- $ 86$ -- $ 87$ -- $ 88$ -- $ 89$ -- $ 90$ -- $ 91$ -- $ 92$ -- $ 93$ -- $ 94$ -- $ 95$ -- $ 96$ -- $ 97$ -- $ 98$ -- $ 99$ -- $ 100$ -- $ 101$ -- $ 102$ -- $ 103$ -- $ 104$ -- $ 105$ -- $ 106$ -- $ 107$ -- $ 108$ -- $ 109$ -- $ 110$ -- $ 111$ -- $ 112$ -- $ 113$ -- $ 114$ -- $ 115$ -- $ 116$ -- $ 117$ -- $ 118$ -- $ 119$ -- $ 120$ -- $ 121$ -- $ 122$ -- $ 123$ -- $ 124$ -- $ 125$ -- $ 126$ -- $ 127$ +- - $ 1$ + - $ 3$ + - $ 5$ + - $ 7$ + - $ 9$ + - $ 11$ + - $ 13$ + - $ 15$ + - $ 16$ + - $ 17$ + - $ 18$ + - $ 19$ + - $ 20$ + - $ 21$ + - $ 22$ + - $ 23$ + - $ 24$ + - $ 25$ + - $ 26$ + - $ 27$ + - $ 28$ + - $ 29$ + - $ 30$ + - $ 31$ + - $ 32$ + - $ 33$ + - $ 34$ + - $ 35$ + - $ 36$ + - $ 37$ + - $ 38$ + - $ 39$ + - $ 40$ + - $ 41$ + - $ 42$ + - $ 43$ + - $ 44$ + - $ 45$ + - $ 46$ + - $ 47$ + - $ 48$ + - $ 49$ + - $ 50$ + - $ 51$ + - $ 52$ + - $ 53$ + - $ 54$ + - $ 55$ + - $ 56$ + - $ 57$ + - $ 58$ + - $ 59$ + - $ 60$ + - $ 61$ + - $ 62$ + - $ 63$ + - $ 64$ + - $ 65$ + - $ 66$ + - $ 67$ + - $ 68$ + - $ 69$ + - $ 70$ + - $ 71$ + - $ 72$ + - $ 73$ + - $ 74$ + - $ 75$ + - $ 76$ + - $ 77$ + - $ 78$ + - $ 79$ + - $ 80$ + - $ 81$ + - $ 82$ + - $ 83$ + - $ 84$ + - $ 85$ + - $ 86$ + - $ 87$ + - $ 88$ + - $ 89$ + - $ 90$ + - $ 91$ + - $ 92$ + - $ 93$ + - $ 94$ + - $ 95$ + - $ 96$ + - $ 97$ + - $ 98$ + - $ 99$ + - $ 100$ + - $ 101$ + - $ 102$ + - $ 103$ + - $ 104$ + - $ 105$ + - $ 106$ + - $ 107$ + - $ 108$ + - $ 109$ + - $ 110$ + - $ 111$ + - $ 112$ + - $ 113$ + - $ 114$ + - $ 115$ + - $ 116$ + - $ 117$ + - $ 118$ + - $ 119$ + - $ 120$ + - $ 121$ + - $ 122$ + - $ 123$ + - $ 124$ + - $ 125$ + - $ 126$ + - $ 127$ ... drop_space() --- diff --git a/test/big/hash.result b/test/big/hash.result index 6e8ec9ad53..eea6e52d63 100644 --- a/test/big/hash.result +++ b/test/big/hash.result @@ -9,11 +9,11 @@ dofile('utils.lua') ------------------------------------------------------------------------------- box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'num'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'num'] ... hash = box.space[0] --- @@ -21,24 +21,24 @@ hash = box.space[0] -- Insert valid fields hash:insert(0, 'value1 v1.0', 'value2 v1.0') --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(1, 'value1 v1.0', 'value2 v1.0') --- -1: {'value1 v1.0', 'value2 v1.0'} +- [1, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(2, 'value1 v1.0', 'value2 v1.0') --- -2: {'value1 v1.0', 'value2 v1.0'} +- [2, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(3, 'value1 v1.0', 'value2 v1.0') --- -3: {'value1 v1.0', 'value2 v1.0'} +- [3, 'value1 v1.0', 'value2 v1.0'] ... -- Insert invalid fields hash:insert('invalid key', 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... ------------------------------------------------------------------------------- -- 32-bit hash replace fields tests @@ -46,20 +46,20 @@ error: 'Tuple field 0 type does not match one required by operation: expected NU -- Replace valid fields hash:replace(3, 'value1 v1.31', 'value2 1.12') --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:replace(1, 'value1 v1.32', 'value2 1.72') --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:replace(2, 'value1 v1.43', 'value2 1.92') --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... -- Replace invalid fields hash:replace('invalid key', 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... ------------------------------------------------------------------------------- -- 32-bit hash select fields test @@ -67,19 +67,19 @@ error: 'Tuple field 0 type does not match one required by operation: expected NU -- select by valid keys hash:select(0, 0) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:select(0, 1) --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:select(0, 2) --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... hash:select(0, 3) --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:select(0, 4) --- @@ -90,11 +90,11 @@ hash:select(0, 5) -- select by invalid keys hash:select(0, 'invalid key') --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM' ... hash:select(0, 1, 2) --- -error: Invalid key part count (expected [0..1], got 2) +- error: Invalid key part count (expected [0..1], got 2) ... ------------------------------------------------------------------------------- -- 32-bit hash delete fields test @@ -102,19 +102,19 @@ error: Invalid key part count (expected [0..1], got 2) -- delete by valid keys hash:delete(0) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(1) --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:delete(2) --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... hash:delete(3) --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:delete(4) --- @@ -125,11 +125,11 @@ hash:delete(5) -- delete by invalid keys hash:delete('invalid key') --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM' ... hash:delete(1, 2) --- -error: Invalid key part count in an exact match (expected 1, got 2) +- error: Invalid key part count in an exact match (expected 1, got 2) ... hash:truncate() --- @@ -142,7 +142,7 @@ hash:truncate() ------------------------------------------------------------------------------- box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num64') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'num64'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'num64'] ... hash = box.space[0] --- @@ -150,40 +150,40 @@ hash = box.space[0] -- Insert valid fields hash:insert(0ULL, 'value1 v1.0', 'value2 v1.0') --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(1ULL, 'value1 v1.0', 'value2 v1.0') --- -1: {'value1 v1.0', 'value2 v1.0'} +- [1, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(2ULL, 'value1 v1.0', 'value2 v1.0') --- -2: {'value1 v1.0', 'value2 v1.0'} +- [2, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(3ULL, 'value1 v1.0', 'value2 v1.0') --- -3: {'value1 v1.0', 'value2 v1.0'} +- [3, 'value1 v1.0', 'value2 v1.0'] ... -- Insert invalid fields hash:insert(100, 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:insert(101, 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:insert(102, 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:insert(103, 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:insert('invalid key', 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... ------------------------------------------------------------------------------- -- 64-bit hash replace fields tests @@ -191,32 +191,32 @@ error: 'Tuple field 0 type does not match one required by operation: expected NU -- Replace valid fields hash:replace(3ULL, 'value1 v1.31', 'value2 1.12') --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:replace(1ULL, 'value1 v1.32', 'value2 1.72') --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:replace(2ULL, 'value1 v1.43', 'value2 1.92') --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... -- Replace invalid fields hash:replace(3, 'value1 v1.31', 'value2 1.12') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:replace(1, 'value1 v1.32', 'value2 1.72') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:replace(2, 'value1 v1.43', 'value2 1.92') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... hash:replace('invalid key', 'value1 v1.0', 'value2 v1.0') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM64' ... ------------------------------------------------------------------------------- -- 64-bit hash select fields test @@ -224,19 +224,19 @@ error: 'Tuple field 0 type does not match one required by operation: expected NU -- select by valid keys hash:select(0, 0ULL) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:select(0, 1ULL) --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:select(0, 2ULL) --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... hash:select(0, 3ULL) --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:select(0, 4ULL) --- @@ -247,19 +247,19 @@ hash:select(0, 5ULL) -- select by valid NUM keys hash:select(0, 0) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:select(0, 1) --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:select(0, 2) --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... hash:select(0, 3) --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:select(0, 4) --- @@ -270,11 +270,11 @@ hash:select(0, 5) -- select by invalid keys hash:select(0, 'invalid key') --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM64' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM64' ... hash:select(0, '00000001', '00000002') --- -error: Invalid key part count (expected [0..1], got 2) +- error: Invalid key part count (expected [0..1], got 2) ... ------------------------------------------------------------------------------- -- 64-bit hash delete fields test @@ -282,19 +282,19 @@ error: Invalid key part count (expected [0..1], got 2) -- delete by valid keys hash:delete(0ULL) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(1ULL) --- -1: {'value1 v1.32', 'value2 1.72'} +- [1, 'value1 v1.32', 'value2 1.72'] ... hash:delete(2ULL) --- -2: {'value1 v1.43', 'value2 1.92'} +- [2, 'value1 v1.43', 'value2 1.92'] ... hash:delete(3ULL) --- -3: {'value1 v1.31', 'value2 1.12'} +- [3, 'value1 v1.31', 'value2 1.12'] ... hash:delete(4ULL) --- @@ -304,36 +304,36 @@ hash:delete(5ULL) ... hash:insert(0ULL, 'value1 v1.0', 'value2 v1.0') --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(1ULL, 'value1 v1.0', 'value2 v1.0') --- -1: {'value1 v1.0', 'value2 v1.0'} +- [1, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(2ULL, 'value1 v1.0', 'value2 v1.0') --- -2: {'value1 v1.0', 'value2 v1.0'} +- [2, 'value1 v1.0', 'value2 v1.0'] ... hash:insert(3ULL, 'value1 v1.0', 'value2 v1.0') --- -3: {'value1 v1.0', 'value2 v1.0'} +- [3, 'value1 v1.0', 'value2 v1.0'] ... -- delete by valid NUM keys hash:delete(0) --- -0: {'value1 v1.0', 'value2 v1.0'} +- [0, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(1) --- -1: {'value1 v1.0', 'value2 v1.0'} +- [1, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(2) --- -2: {'value1 v1.0', 'value2 v1.0'} +- [2, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(3) --- -3: {'value1 v1.0', 'value2 v1.0'} +- [3, 'value1 v1.0', 'value2 v1.0'] ... hash:delete(4) --- @@ -344,11 +344,11 @@ hash:delete(5) -- delete by invalid keys hash:delete('invalid key') --- -error: 'Supplied key type of part 0 does not match index part type: expected NUM64' +- error: 'Supplied key type of part 0 does not match index part type: expected NUM64' ... hash:delete('00000001', '00000002') --- -error: Invalid key part count in an exact match (expected 1, got 2) +- error: Invalid key part count in an exact match (expected 1, got 2) ... hash:truncate() --- @@ -361,7 +361,7 @@ hash:truncate() ------------------------------------------------------------------------------- box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'str') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'str'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'str'] ... hash = box.space[0] --- @@ -369,19 +369,19 @@ hash = box.space[0] -- Insert valid fields hash:insert('key 0', 'value1 v1.0', 'value2 v1.0') --- -'key 0': {'value1 v1.0', 'value2 v1.0'} +- ['key 0', 'value1 v1.0', 'value2 v1.0'] ... hash:insert('key 1', 'value1 v1.0', 'value2 v1.0') --- -'key 1': {'value1 v1.0', 'value2 v1.0'} +- ['key 1', 'value1 v1.0', 'value2 v1.0'] ... hash:insert('key 2', 'value1 v1.0', 'value2 v1.0') --- -'key 2': {'value1 v1.0', 'value2 v1.0'} +- ['key 2', 'value1 v1.0', 'value2 v1.0'] ... hash:insert('key 3', 'value1 v1.0', 'value2 v1.0') --- -'key 3': {'value1 v1.0', 'value2 v1.0'} +- ['key 3', 'value1 v1.0', 'value2 v1.0'] ... ------------------------------------------------------------------------------- -- String hash replace fields tests @@ -389,15 +389,15 @@ hash:insert('key 3', 'value1 v1.0', 'value2 v1.0') -- Replace valid fields hash:replace('key 3', 'value1 v1.31', 'value2 1.12') --- -'key 3': {'value1 v1.31', 'value2 1.12'} +- ['key 3', 'value1 v1.31', 'value2 1.12'] ... hash:replace('key 1', 'value1 v1.32', 'value2 1.72') --- -'key 1': {'value1 v1.32', 'value2 1.72'} +- ['key 1', 'value1 v1.32', 'value2 1.72'] ... hash:replace('key 2', 'value1 v1.43', 'value2 1.92') --- -'key 2': {'value1 v1.43', 'value2 1.92'} +- ['key 2', 'value1 v1.43', 'value2 1.92'] ... ------------------------------------------------------------------------------- -- String hash select fields test @@ -405,19 +405,19 @@ hash:replace('key 2', 'value1 v1.43', 'value2 1.92') -- select by valid keys hash:select(0, 'key 0') --- -'key 0': {'value1 v1.0', 'value2 v1.0'} +- ['key 0', 'value1 v1.0', 'value2 v1.0'] ... hash:select(0, 'key 1') --- -'key 1': {'value1 v1.32', 'value2 1.72'} +- ['key 1', 'value1 v1.32', 'value2 1.72'] ... hash:select(0, 'key 2') --- -'key 2': {'value1 v1.43', 'value2 1.92'} +- ['key 2', 'value1 v1.43', 'value2 1.92'] ... hash:select(0, 'key 3') --- -'key 3': {'value1 v1.31', 'value2 1.12'} +- ['key 3', 'value1 v1.31', 'value2 1.12'] ... hash:select(0, 'key 4') --- @@ -428,7 +428,7 @@ hash:select(0, 'key 5') -- select by invalid keys hash:select(0, 'key 1', 'key 2') --- -error: Invalid key part count (expected [0..1], got 2) +- error: Invalid key part count (expected [0..1], got 2) ... ------------------------------------------------------------------------------- -- String hash delete fields test @@ -436,19 +436,19 @@ error: Invalid key part count (expected [0..1], got 2) -- delete by valid keys hash:delete('key 0') --- -'key 0': {'value1 v1.0', 'value2 v1.0'} +- ['key 0', 'value1 v1.0', 'value2 v1.0'] ... hash:delete('key 1') --- -'key 1': {'value1 v1.32', 'value2 1.72'} +- ['key 1', 'value1 v1.32', 'value2 1.72'] ... hash:delete('key 2') --- -'key 2': {'value1 v1.43', 'value2 1.92'} +- ['key 2', 'value1 v1.43', 'value2 1.92'] ... hash:delete('key 3') --- -'key 3': {'value1 v1.31', 'value2 1.12'} +- ['key 3', 'value1 v1.31', 'value2 1.12'] ... hash:delete('key 4') --- @@ -459,7 +459,7 @@ hash:delete('key 5') -- delete by invalid keys hash:delete('key 1', 'key 2') --- -error: Invalid key part count in an exact match (expected 1, got 2) +- error: Invalid key part count in an exact match (expected 1, got 2) ... hash:truncate() --- @@ -469,47 +469,47 @@ hash:truncate() ------------------------ box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'num'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'num'] ... box.replace(box.schema.INDEX_ID, 0, 1, 'field1', 'hash', 1, 1, 1, 'num') --- -0: {1, 'field1', 1752392040, 1, 1, 1, 'num'} +- [0, 1, 'field1', 1752392040, 1, 1, 1, 'num'] ... box.replace(box.schema.INDEX_ID, 0, 2, 'field2', 'hash', 1, 1, 2, 'num') --- -0: {2, 'field2', 1752392040, 1, 1, 2, 'num'} +- [0, 2, 'field2', 1752392040, 1, 1, 2, 'num'] ... box.replace(box.schema.INDEX_ID, 0, 3, 'field3', 'hash', 1, 1, 3, 'num') --- -0: {3, 'field3', 1752392040, 1, 1, 3, 'num'} +- [0, 3, 'field3', 1752392040, 1, 1, 3, 'num'] ... hash = box.space[0] --- ... hash:insert(0, 0, 0, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... hash:insert(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:insert(2, 2, 2, 2) --- -2: {2, 2, 2} +- [2, 2, 2, 2] ... -- OK hash:replace_if_exists(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:replace_if_exists(1, 10, 10, 10) --- -1: {10, 10, 10} +- [1, 10, 10, 10] ... hash:replace_if_exists(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:select(0, 10) --- @@ -525,28 +525,28 @@ hash:select(3, 10) ... hash:select(0, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:select(1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:select(2, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... hash:select(3, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... -- OK hash:insert(10, 10, 10, 10) --- -10: {10, 10, 10} +- [10, 10, 10, 10] ... hash:delete(10) --- -10: {10, 10, 10} +- [10, 10, 10, 10] ... hash:select(0, 10) --- @@ -563,7 +563,7 @@ hash:select(3, 10) -- TupleFound (primary key) hash:insert(1, 10, 10, 10) --- -error: Duplicate key exists in unique index 0 +- error: Duplicate key exists in unique index 0 ... hash:select(0, 10) --- @@ -579,12 +579,12 @@ hash:select(3, 10) ... hash:select(0, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... -- TupleNotFound (primary key) hash:replace_if_exists(10, 10, 10, 10) --- -error: Tuple doesn't exist in index 0 +- error: Tuple doesn't exist in index 0 ... hash:select(0, 10) --- @@ -601,7 +601,7 @@ hash:select(3, 10) -- TupleFound (key --1) hash:insert(10, 0, 10, 10) --- -error: Duplicate key exists in unique index 1 +- error: Duplicate key exists in unique index 1 ... hash:select(0, 10) --- @@ -617,12 +617,12 @@ hash:select(3, 10) ... hash:select(1, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key --1) hash:replace_if_exists(2, 0, 10, 10) --- -error: Duplicate key exists in unique index 1 +- error: Duplicate key exists in unique index 1 ... hash:select(0, 10) --- @@ -638,12 +638,12 @@ hash:select(3, 10) ... hash:select(1, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key --3) hash:insert(10, 10, 10, 0) --- -error: Duplicate key exists in unique index 3 +- error: Duplicate key exists in unique index 3 ... hash:select(0, 10) --- @@ -659,12 +659,12 @@ hash:select(3, 10) ... hash:select(3, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key --3) hash:replace_if_exists(2, 10, 10, 0) --- -error: Duplicate key exists in unique index 3 +- error: Duplicate key exists in unique index 3 ... hash:select(0, 10) --- @@ -680,7 +680,7 @@ hash:select(3, 10) ... hash:select(3, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... hash:drop() --- diff --git a/test/big/hash_multipart.result b/test/big/hash_multipart.result index 0101db27f5..030600a012 100644 --- a/test/big/hash_multipart.result +++ b/test/big/hash_multipart.result @@ -3,15 +3,15 @@ dofile('utils.lua') ... box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 3, 0, 'num', 1, 'str', 2, 'num') --- -0: {0, 'primary', 1752392040, 1, 3, 0, 'num', 1, 'str', 2, 'num'} +- [0, 0, 'primary', 1752392040, 1, 3, 0, 'num', 1, 'str', 2, 'num'] ... box.insert(box.schema.INDEX_ID, 0, 1, 'unique', 'hash', 1, 2, 2, 'num', 4, 'num') --- -0: {1, 'unique', 1752392040, 1, 2, 2, 'num', 4, 'num'} +- [0, 1, 'unique', 1752392040, 1, 2, 2, 'num', 4, 'num'] ... hash = box.space[0] --- @@ -19,40 +19,40 @@ hash = box.space[0] -- insert rows hash:insert(0, 'foo', 0, '', 1) --- -0: {'foo', 0, '', 1} +- [0, 'foo', 0, '', 1] ... hash:insert(0, 'foo', 1, '', 1) --- -0: {'foo', 1, '', 1} +- [0, 'foo', 1, '', 1] ... hash:insert(1, 'foo', 0, '', 2) --- -1: {'foo', 0, '', 2} +- [1, 'foo', 0, '', 2] ... hash:insert(1, 'foo', 1, '', 2) --- -1: {'foo', 1, '', 2} +- [1, 'foo', 1, '', 2] ... hash:insert(0, 'bar', 0, '', 3) --- -0: {'bar', 0, '', 3} +- [0, 'bar', 0, '', 3] ... hash:insert(0, 'bar', 1, '', 3) --- -0: {'bar', 1, '', 3} +- [0, 'bar', 1, '', 3] ... hash:insert(1, 'bar', 0, '', 4) --- -1: {'bar', 0, '', 4} +- [1, 'bar', 0, '', 4] ... hash:insert(1, 'bar', 1, '', 4) --- -1: {'bar', 1, '', 4} +- [1, 'bar', 1, '', 4] ... -- try to insert a row with a duplicate key hash:insert(1, 'bar', 1, '', 5) --- -error: Duplicate key exists in unique index 0 +- error: Duplicate key exists in unique index 0 ... -- output all rows -- setopt delimiter ';' @@ -68,43 +68,43 @@ end; -- setopt delimiter '' box.sort(box.select_all(0)) --- --0: {'bar', 0, '', 3} --0: {'bar', 1, '', 3} --0: {'foo', 0, '', 1} --0: {'foo', 1, '', 1} --1: {'bar', 0, '', 4} --1: {'bar', 1, '', 4} --1: {'foo', 0, '', 2} --1: {'foo', 1, '', 2} +- - [0, 'bar', 0, '', 3] + - [0, 'bar', 1, '', 3] + - [0, 'foo', 0, '', 1] + - [0, 'foo', 1, '', 1] + - [1, 'bar', 0, '', 4] + - [1, 'bar', 1, '', 4] + - [1, 'foo', 0, '', 2] + - [1, 'foo', 1, '', 2] ... -- primary index select hash:select(0, 1, 'foo', 0) --- -1: {'foo', 0, '', 2} +- [1, 'foo', 0, '', 2] ... hash:select(0, 1, 'bar', 0) --- -1: {'bar', 0, '', 4} +- [1, 'bar', 0, '', 4] ... -- primary index select with missing part hash:select(0, 1, 'foo') --- -error: Invalid key part count in an exact match (expected 3, got 2) +- error: Invalid key part count in an exact match (expected 3, got 2) ... -- primary index select with extra part hash:select(0, 1, 'foo', 0, 0) --- -error: Invalid key part count (expected [0..3], got 4) +- error: Invalid key part count (expected [0..3], got 4) ... -- primary index select with wrong type hash:select(0, 1, 'foo', 'baz') --- -error: 'Supplied key type of part 2 does not match index part type: expected NUM' +- error: 'Supplied key type of part 2 does not match index part type: expected NUM' ... -- secondary index select hash:select(1, 1, 4) --- -1: {'bar', 1, '', 4} +- [1, 'bar', 1, '', 4] ... -- secondary index select with no such key hash:select(1, 1, 5) @@ -113,12 +113,12 @@ hash:select(1, 1, 5) -- secondary index select with missing part hash:select(1, 1) --- -error: Invalid key part count in an exact match (expected 2, got 1) +- error: Invalid key part count in an exact match (expected 2, got 1) ... -- secondary index select with wrong type hash:select(1, 1, 'baz') --- -error: 'Supplied key type of part 1 does not match index part type: expected NUM' +- error: 'Supplied key type of part 1 does not match index part type: expected NUM' ... -- cleanup hash:truncate() @@ -126,7 +126,7 @@ hash:truncate() ... hash:len() --- -0 +- 0 ... hash:drop() --- diff --git a/test/big/iterator.result b/test/big/iterator.result index e7c182f74d..b1601aabba 100644 --- a/test/big/iterator.result +++ b/test/big/iterator.result @@ -6,949 +6,949 @@ dofile('utils.lua') ... box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 1, 0, 'str') --- -0: {0, 'primary', 1701147252, 1, 1, 0, 'str'} +- [0, 0, 'primary', 1701147252, 1, 1, 0, 'str'] ... -- Tree single-part non-unique box.insert(box.schema.INDEX_ID, 0, 1, 'i1', 'tree', 0, 1, 1, 'str') --- -0: {1, 12649, 1701147252, 0, 1, 1, 'str'} +- [0, 1, 12649, 1701147252, 0, 1, 1, 'str'] ... -- Tree multi-part unique box.insert(box.schema.INDEX_ID, 0, 2, 'i2', 'tree', 1, 2, 1, 'str', 2, 'str') --- -0: {2, 12905, 1701147252, 1, 2, 1, 'str', 2, 'str'} +- [0, 2, 12905, 1701147252, 1, 2, 1, 'str', 2, 'str'] ... -- Tree multi-part non-unique box.insert(box.schema.INDEX_ID, 0, 3, 'i2', 'tree', 0, 2, 2, 'str', 3, 'str') --- -0: {3, 12905, 1701147252, 0, 2, 2, 'str', 3, 'str'} +- [0, 3, 12905, 1701147252, 0, 2, 2, 'str', 3, 'str'] ... -- Hash single-part unique box.insert(box.schema.INDEX_ID, 0, 4, 'i4', 'hash', 1, 1, 0, 'str') --- -0: {4, 13417, 1752392040, 1, 1, 0, 'str'} +- [0, 4, 13417, 1752392040, 1, 1, 0, 'str'] ... -- Hash multi-part unique box.insert(box.schema.INDEX_ID, 0, 5, 'i5', 'hash', 1, 2, 1, 'str', 2, 'str') --- -0: {5, 13673, 1752392040, 1, 2, 1, 'str', 2, 'str'} +- [0, 5, 13673, 1752392040, 1, 2, 1, 'str', 2, 'str'] ... space = box.space[0] --- ... space:insert('pid_001', 'sid_001', 'tid_998', 'a') --- -'pid_001': {'sid_001', 'tid_998', 'a'} +- ['pid_001', 'sid_001', 'tid_998', 'a'] ... space:insert('pid_002', 'sid_001', 'tid_997', 'a') --- -'pid_002': {'sid_001', 'tid_997', 'a'} +- ['pid_002', 'sid_001', 'tid_997', 'a'] ... space:insert('pid_003', 'sid_002', 'tid_997', 'b') --- -'pid_003': {'sid_002', 'tid_997', 'b'} +- ['pid_003', 'sid_002', 'tid_997', 'b'] ... space:insert('pid_005', 'sid_002', 'tid_996', 'b') --- -'pid_005': {'sid_002', 'tid_996', 'b'} +- ['pid_005', 'sid_002', 'tid_996', 'b'] ... space:insert('pid_007', 'sid_003', 'tid_996', 'a') --- -'pid_007': {'sid_003', 'tid_996', 'a'} +- ['pid_007', 'sid_003', 'tid_996', 'a'] ... space:insert('pid_011', 'sid_004', 'tid_996', 'c') --- -'pid_011': {'sid_004', 'tid_996', 'c'} +- ['pid_011', 'sid_004', 'tid_996', 'c'] ... space:insert('pid_013', 'sid_005', 'tid_996', 'b') --- -'pid_013': {'sid_005', 'tid_996', 'b'} +- ['pid_013', 'sid_005', 'tid_996', 'b'] ... space:insert('pid_017', 'sid_006', 'tid_996', 'a') --- -'pid_017': {'sid_006', 'tid_996', 'a'} +- ['pid_017', 'sid_006', 'tid_996', 'a'] ... space:insert('pid_019', 'sid_005', 'tid_995', 'a') --- -'pid_019': {'sid_005', 'tid_995', 'a'} +- ['pid_019', 'sid_005', 'tid_995', 'a'] ... space:insert('pid_023', 'sid_005', 'tid_994', 'a') --- -'pid_023': {'sid_005', 'tid_994', 'a'} +- ['pid_023', 'sid_005', 'tid_994', 'a'] ... ------------------------------------------------------------------------------- -- Iterator: tree single-part unique ------------------------------------------------------------------------------- iterate(space.n, 0, 0, 1) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.ALL) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.EQ) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.REQ) --- -- $pid_023$ -- $pid_019$ -- $pid_017$ -- $pid_013$ -- $pid_011$ -- $pid_007$ -- $pid_005$ -- $pid_003$ -- $pid_002$ -- $pid_001$ +- - $pid_023$ + - $pid_019$ + - $pid_017$ + - $pid_013$ + - $pid_011$ + - $pid_007$ + - $pid_005$ + - $pid_003$ + - $pid_002$ + - $pid_001$ ... iterate(space.n, 0, 0, 1, box.index.GE) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.GT) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.LE) --- -- $pid_023$ -- $pid_019$ -- $pid_017$ -- $pid_013$ -- $pid_011$ -- $pid_007$ -- $pid_005$ -- $pid_003$ -- $pid_002$ -- $pid_001$ +- - $pid_023$ + - $pid_019$ + - $pid_017$ + - $pid_013$ + - $pid_011$ + - $pid_007$ + - $pid_005$ + - $pid_003$ + - $pid_002$ + - $pid_001$ ... iterate(space.n, 0, 0, 1, box.index.LT) --- -- $pid_023$ -- $pid_019$ -- $pid_017$ -- $pid_013$ -- $pid_011$ -- $pid_007$ -- $pid_005$ -- $pid_003$ -- $pid_002$ -- $pid_001$ +- - $pid_023$ + - $pid_019$ + - $pid_017$ + - $pid_013$ + - $pid_011$ + - $pid_007$ + - $pid_005$ + - $pid_003$ + - $pid_002$ + - $pid_001$ ... iterate(space.n, 0, 0, 1, box.index.EQ, 'pid_003') --- -- $pid_003$ +- - $pid_003$ ... iterate(space.n, 0, 0, 1, box.index.REQ, 'pid_003') --- -- $pid_003$ +- - $pid_003$ ... iterate(space.n, 0, 0, 1, box.index.EQ, 'pid_666') --- -{} +- {} ... iterate(space.n, 0, 0, 1, box.index.REQ, 'pid_666') --- -{} +- {} ... iterate(space.n, 0, 0, 1, box.index.GE, 'pid_001') --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.GT, 'pid_001') --- -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 0, 0, 1, box.index.GE, 'pid_999') --- -{} +- {} ... iterate(space.n, 0, 0, 1, box.index.GT, 'pid_999') --- -{} +- {} ... iterate(space.n, 0, 0, 1, box.index.LE, 'pid_002') --- -- $pid_002$ -- $pid_001$ +- - $pid_002$ + - $pid_001$ ... iterate(space.n, 0, 0, 1, box.index.LT, 'pid_002') --- -- $pid_001$ +- - $pid_001$ ... iterate(space.n, 0, 0, 1, box.index.LE, 'pid_000') --- -{} +- {} ... iterate(space.n, 0, 0, 1, box.index.LT, 'pid_000') --- -{} +- {} ... ------------------------------------------------------------------------------- -- Iterator: tree single-part non-unique ------------------------------------------------------------------------------- iterate(space.n, 1, 1, 2, box.index.ALL) --- -- $sid_001$ -- $sid_001$ -- $sid_002$ -- $sid_002$ -- $sid_003$ -- $sid_004$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_006$ +- - $sid_001$ + - $sid_001$ + - $sid_002$ + - $sid_002$ + - $sid_003$ + - $sid_004$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.EQ) --- -- $sid_001$ -- $sid_001$ -- $sid_002$ -- $sid_002$ -- $sid_003$ -- $sid_004$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_006$ +- - $sid_001$ + - $sid_001$ + - $sid_002$ + - $sid_002$ + - $sid_003$ + - $sid_004$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.REQ) --- -- $sid_006$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_004$ -- $sid_003$ -- $sid_002$ -- $sid_002$ -- $sid_001$ -- $sid_001$ +- - $sid_006$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_004$ + - $sid_003$ + - $sid_002$ + - $sid_002$ + - $sid_001$ + - $sid_001$ ... iterate(space.n, 1, 1, 2, box.index.GE) --- -- $sid_001$ -- $sid_001$ -- $sid_002$ -- $sid_002$ -- $sid_003$ -- $sid_004$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_006$ +- - $sid_001$ + - $sid_001$ + - $sid_002$ + - $sid_002$ + - $sid_003$ + - $sid_004$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.GT) --- -- $sid_001$ -- $sid_001$ -- $sid_002$ -- $sid_002$ -- $sid_003$ -- $sid_004$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_006$ +- - $sid_001$ + - $sid_001$ + - $sid_002$ + - $sid_002$ + - $sid_003$ + - $sid_004$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.LE) --- -- $sid_006$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_004$ -- $sid_003$ -- $sid_002$ -- $sid_002$ -- $sid_001$ -- $sid_001$ +- - $sid_006$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_004$ + - $sid_003$ + - $sid_002$ + - $sid_002$ + - $sid_001$ + - $sid_001$ ... iterate(space.n, 1, 1, 2, box.index.LT) --- -- $sid_006$ -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_004$ -- $sid_003$ -- $sid_002$ -- $sid_002$ -- $sid_001$ -- $sid_001$ +- - $sid_006$ + - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_004$ + - $sid_003$ + - $sid_002$ + - $sid_002$ + - $sid_001$ + - $sid_001$ ... iterate(space.n, 1, 1, 2, box.index.EQ, 'sid_005') --- -- $sid_005$ -- $sid_005$ -- $sid_005$ +- - $sid_005$ + - $sid_005$ + - $sid_005$ ... iterate(space.n, 1, 1, 2, box.index.REQ, 'sid_005') --- -- $sid_005$ -- $sid_005$ -- $sid_005$ +- - $sid_005$ + - $sid_005$ + - $sid_005$ ... iterate(space.n, 1, 1, 2, box.index.GE, 'sid_005') --- -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_006$ +- - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.GT, 'sid_005') --- -- $sid_006$ +- - $sid_006$ ... iterate(space.n, 1, 1, 2, box.index.GE, 'sid_999') --- -{} +- {} ... iterate(space.n, 1, 1, 2, box.index.GT, 'sid_999') --- -{} +- {} ... iterate(space.n, 1, 1, 2, box.index.LE, 'sid_005') --- -- $sid_005$ -- $sid_005$ -- $sid_005$ -- $sid_004$ -- $sid_003$ -- $sid_002$ -- $sid_002$ -- $sid_001$ -- $sid_001$ +- - $sid_005$ + - $sid_005$ + - $sid_005$ + - $sid_004$ + - $sid_003$ + - $sid_002$ + - $sid_002$ + - $sid_001$ + - $sid_001$ ... iterate(space.n, 1, 1, 2, box.index.LT, 'sid_005') --- -- $sid_004$ -- $sid_003$ -- $sid_002$ -- $sid_002$ -- $sid_001$ -- $sid_001$ +- - $sid_004$ + - $sid_003$ + - $sid_002$ + - $sid_002$ + - $sid_001$ + - $sid_001$ ... iterate(space.n, 1, 1, 2, box.index.LE, 'sid_000') --- -{} +- {} ... iterate(space.n, 1, 1, 2, box.index.LT, 'sid_000') --- -{} +- {} ... ------------------------------------------------------------------------------- -- Iterator: tree multi-part unique ------------------------------------------------------------------------------- iterate(space.n, 2, 1, 3, box.index.ALL) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.EQ) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.REQ) --- -- $sid_006$tid_996$ -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_006$tid_996$ + - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.GE) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GT) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.LE) --- -- $sid_006$tid_996$ -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_006$tid_996$ + - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LT) --- -- $sid_006$tid_996$ -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_006$tid_996$ + - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005') --- -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ +- - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005', 'tid_995') --- -- $sid_005$tid_995$ +- - $sid_005$tid_995$ ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005', 'tid_999') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.REQ, 'sid_005') --- -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ +- - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ ... iterate(space.n, 2, 1, 3, box.index.REQ, 'sid_005', 'tid_995') --- -- $sid_005$tid_995$ +- - $sid_005$tid_995$ ... iterate(space.n, 2, 1, 3, box.index.REQ, 'sid_005', 'tid_999') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_005') --- -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GT, 'sid_005') --- -- $sid_006$tid_996$ +- - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_005', 'tid_995') --- -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GT, 'sid_005', 'tid_995') --- -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_005', 'tid_999') --- -- $sid_006$tid_996$ +- - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GT, 'sid_005', 'tid_999') --- -- $sid_006$tid_996$ +- - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_999') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.GT, 'sid_999') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.LE, 'sid_005') --- -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LT, 'sid_005') --- -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LE, 'sid_005', 'tid_997') --- -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LT, 'sid_005', 'tid_997') --- -- $sid_005$tid_996$ -- $sid_005$tid_995$ -- $sid_005$tid_994$ -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_005$tid_996$ + - $sid_005$tid_995$ + - $sid_005$tid_994$ + - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LE, 'sid_005', 'tid_000') --- -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LT, 'sid_005', 'tid_000') --- -- $sid_004$tid_996$ -- $sid_003$tid_996$ -- $sid_002$tid_997$ -- $sid_002$tid_996$ -- $sid_001$tid_998$ -- $sid_001$tid_997$ +- - $sid_004$tid_996$ + - $sid_003$tid_996$ + - $sid_002$tid_997$ + - $sid_002$tid_996$ + - $sid_001$tid_998$ + - $sid_001$tid_997$ ... iterate(space.n, 2, 1, 3, box.index.LE, 'sid_000') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.LT, 'sid_000') --- -{} +- {} ... ------------------------------------------------------------------------------- -- Iterator: tree multi-part non-unique ------------------------------------------------------------------------------- iterate(space.n, 3, 2, 4, box.index.ALL) --- -- $tid_994$a$ -- $tid_995$a$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$c$ -- $tid_997$a$ -- $tid_997$b$ -- $tid_998$a$ +- - $tid_994$a$ + - $tid_995$a$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$c$ + - $tid_997$a$ + - $tid_997$b$ + - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.EQ) --- -- $tid_994$a$ -- $tid_995$a$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$c$ -- $tid_997$a$ -- $tid_997$b$ -- $tid_998$a$ +- - $tid_994$a$ + - $tid_995$a$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$c$ + - $tid_997$a$ + - $tid_997$b$ + - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.REQ) --- -- $tid_998$a$ -- $tid_997$b$ -- $tid_997$a$ -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_995$a$ -- $tid_994$a$ +- - $tid_998$a$ + - $tid_997$b$ + - $tid_997$a$ + - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_995$a$ + - $tid_994$a$ ... iterate(space.n, 3, 2, 4, box.index.GE) --- -- $tid_994$a$ -- $tid_995$a$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$c$ -- $tid_997$a$ -- $tid_997$b$ -- $tid_998$a$ +- - $tid_994$a$ + - $tid_995$a$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$c$ + - $tid_997$a$ + - $tid_997$b$ + - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.GT) --- -- $tid_994$a$ -- $tid_995$a$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$c$ -- $tid_997$a$ -- $tid_997$b$ -- $tid_998$a$ +- - $tid_994$a$ + - $tid_995$a$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$c$ + - $tid_997$a$ + - $tid_997$b$ + - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.LE) --- -- $tid_998$a$ -- $tid_997$b$ -- $tid_997$a$ -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_995$a$ -- $tid_994$a$ +- - $tid_998$a$ + - $tid_997$b$ + - $tid_997$a$ + - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_995$a$ + - $tid_994$a$ ... iterate(space.n, 3, 2, 4, box.index.LT) --- -- $tid_998$a$ -- $tid_997$b$ -- $tid_997$a$ -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_995$a$ -- $tid_994$a$ +- - $tid_998$a$ + - $tid_997$b$ + - $tid_997$a$ + - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_995$a$ + - $tid_994$a$ ... iterate(space.n, 3, 2, 4, box.index.EQ, 'tid_996') --- -- $tid_996$a$ -- $tid_996$a$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$c$ +- - $tid_996$a$ + - $tid_996$a$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$c$ ... iterate(space.n, 3, 2, 4, box.index.EQ, 'tid_996', 'a') --- -- $tid_996$a$ -- $tid_996$a$ +- - $tid_996$a$ + - $tid_996$a$ ... iterate(space.n, 3, 2, 4, box.index.EQ, 'tid_996', 'z') --- -{} +- {} ... iterate(space.n, 3, 2, 4, box.index.REQ, 'tid_996') --- -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ +- - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ ... iterate(space.n, 3, 2, 4, box.index.REQ, 'tid_996', 'a') --- -- $tid_996$a$ -- $tid_996$a$ +- - $tid_996$a$ + - $tid_996$a$ ... iterate(space.n, 3, 2, 4, box.index.REQ, 'tid_996', '0') --- -{} +- {} ... iterate(space.n, 3, 2, 4, box.index.GE, 'tid_997') --- -- $tid_997$a$ -- $tid_997$b$ -- $tid_998$a$ +- - $tid_997$a$ + - $tid_997$b$ + - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.GT, 'tid_997') --- -- $tid_998$a$ +- - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.GE, 'tid_998') --- -- $tid_998$a$ +- - $tid_998$a$ ... iterate(space.n, 3, 2, 4, box.index.GT, 'tid_998') --- -{} +- {} ... iterate(space.n, 3, 2, 4, box.index.LE, 'tid_997') --- -- $tid_997$b$ -- $tid_997$a$ -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_995$a$ -- $tid_994$a$ +- - $tid_997$b$ + - $tid_997$a$ + - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_995$a$ + - $tid_994$a$ ... iterate(space.n, 3, 2, 4, box.index.LT, 'tid_997') --- -- $tid_996$c$ -- $tid_996$b$ -- $tid_996$b$ -- $tid_996$a$ -- $tid_996$a$ -- $tid_995$a$ -- $tid_994$a$ +- - $tid_996$c$ + - $tid_996$b$ + - $tid_996$b$ + - $tid_996$a$ + - $tid_996$a$ + - $tid_995$a$ + - $tid_994$a$ ... iterate(space.n, 3, 2, 4, box.index.LE, 'tid_000') --- -{} +- {} ... iterate(space.n, 3, 2, 4, box.index.LT, 'tid_000') --- -{} +- {} ... iterate(space.n, 3, 2, 4, box.index.LT, 'tid_996', 'to', 'many', 'keys') --- -error: 'utils.lua:27: Key part count 4 is greater than index part count 2' +- error: 'utils.lua:27: Key part count 4 is greater than index part count 2' ... ------------------------------------------------------------------------------- -- Iterator: hash single-part unique ------------------------------------------------------------------------------- iterate(space.n, 4, 0, 1) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 4, 0, 1, box.index.ALL) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 4, 0, 1, box.index.EQ) --- -error: Invalid key part count in an exact match (expected 1, got 0) +- error: Invalid key part count in an exact match (expected 1, got 0) ... iterate(space.n, 4, 0, 1, box.index.GE) --- -- $pid_001$ -- $pid_002$ -- $pid_003$ -- $pid_005$ -- $pid_007$ -- $pid_011$ -- $pid_013$ -- $pid_017$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_002$ + - $pid_003$ + - $pid_005$ + - $pid_007$ + - $pid_011$ + - $pid_013$ + - $pid_017$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 4, 0, 1, box.index.EQ, 'pid_003') --- -- $pid_003$ +- - $pid_003$ ... iterate(space.n, 4, 0, 1, box.index.EQ, 'pid_666') --- -{} +- {} ... iterate(space.n, 4, 0, 1, box.index.GE, 'pid_001') --- -- $pid_001$ -- $pid_007$ -- $pid_011$ -- $pid_019$ -- $pid_023$ +- - $pid_001$ + - $pid_007$ + - $pid_011$ + - $pid_019$ + - $pid_023$ ... iterate(space.n, 4, 0, 1, box.index.GE, 'pid_999') --- -{} +- {} ... ------------------------------------------------------------------------------- -- Iterator: hash multi-part unique ------------------------------------------------------------------------------- iterate(space.n, 5, 1, 3, box.index.ALL) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 5, 1, 3, box.index.EQ) --- -error: Invalid key part count in an exact match (expected 2, got 0) +- error: Invalid key part count in an exact match (expected 2, got 0) ... iterate(space.n, 5, 1, 3, box.index.EQ, 'sid_005') --- -error: Invalid key part count in an exact match (expected 2, got 1) +- error: Invalid key part count in an exact match (expected 2, got 1) ... iterate(space.n, 5, 1, 3, box.index.GE) --- -- $sid_001$tid_997$ -- $sid_001$tid_998$ -- $sid_002$tid_996$ -- $sid_002$tid_997$ -- $sid_003$tid_996$ -- $sid_004$tid_996$ -- $sid_005$tid_994$ -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_001$tid_997$ + - $sid_001$tid_998$ + - $sid_002$tid_996$ + - $sid_002$tid_997$ + - $sid_003$tid_996$ + - $sid_004$tid_996$ + - $sid_005$tid_994$ + - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005', 'tid_995') --- -- $sid_005$tid_995$ +- - $sid_005$tid_995$ ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005', 'tid_999') --- -{} +- {} ... iterate(space.n, 2, 1, 3, box.index.EQ, 'sid_005', 'tid_995', 'a') --- -error: 'utils.lua:27: Key part count 3 is greater than index part count 2' +- error: 'utils.lua:27: Key part count 3 is greater than index part count 2' ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_005', 'tid_995') --- -- $sid_005$tid_995$ -- $sid_005$tid_996$ -- $sid_006$tid_996$ +- - $sid_005$tid_995$ + - $sid_005$tid_996$ + - $sid_006$tid_996$ ... iterate(space.n, 2, 1, 3, box.index.GE, 'sid_005', 'tid_999') --- -- $sid_006$tid_996$ +- - $sid_006$tid_996$ ... ------------------------------------------------------------------------------- -- Iterator: various ------------------------------------------------------------------------------- space.index[0]:iterator(-666) --- -error: 'unknown iterator type: -666' +- error: 'unknown iterator type: -666' ... space:drop() --- diff --git a/test/big/sql.result b/test/big/sql.result index 9812ef58b3..ccd2eadc2b 100644 --- a/test/big/sql.result +++ b/test/big/sql.result @@ -1,14 +1,14 @@ box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'str') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'str'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'str'] ... box.insert(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 1, 1, 'str') --- -0: {1, 'secondary', 1701147252, 0, 1, 1, 'str'} +- [0, 1, 'secondary', 1701147252, 0, 1, 1, 'str'] ... # # A test case for Bug#729758 @@ -84,7 +84,7 @@ box.space[0]:truncate() # box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 1, 2, 1, 'str', 2, 'str') --- -0: {1, 'secondary', 1701147252, 1, 2, 1, 'str', 2, 'str'} +- [0, 1, 'secondary', 1701147252, 1, 2, 1, 'str', 2, 'str'] ... insert into t0 values ('key1', 'part1', 'part2') Insert OK, 1 row affected @@ -96,9 +96,9 @@ insert into t0 values ('key3', 'part1', 'part2_b') Insert OK, 1 row affected return { box.space[0]:select(1) } --- --830039403: {'part1', 'part2'} --846816619: {'part1', 'part2_a'} --863593835: {'part1', 'part2_b'} +- - [830039403, 'part1', 'part2'] + - [846816619, 'part1', 'part2_a'] + - [863593835, 'part1', 'part2_b'] ... select * from t0 where k0='key1' Found 1 tuple: @@ -153,11 +153,11 @@ box.space[0]:truncate() ... box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 1, 0, 'num64') --- -0: {0, 'primary', 1701147252, 1, 1, 0, 'num64'} +- [0, 0, 'primary', 1701147252, 1, 1, 0, 'num64'] ... box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 2, 1, 'str', 2, 'str') --- -0: {1, 'secondary', 1701147252, 0, 2, 1, 'str', 2, 'str'} +- [0, 1, 'secondary', 1701147252, 0, 2, 1, 'str', 2, 'str'] ... insert into t0 values ('01234567', 'part1', 'part2') Insert OK, 1 row affected @@ -177,11 +177,11 @@ for k, v in box.space[0]:pairs() do table.insert(l, v) end ... return l --- --3978425819141910832: {'part1', 'part2'} --3978425819141910833: {'part1', 'part2'} --3978425819141910834: {'part1', 'part2_a'} --3978425819141910835: {'part1_a', 'part2'} --3978425819141910836: {'part1_a', 'part2_a'} +- - [3978425819141910832, 'part1', 'part2'] + - [3978425819141910833, 'part1', 'part2'] + - [3978425819141910834, 'part1', 'part2_a'] + - [3978425819141910835, 'part1_a', 'part2'] + - [3978425819141910836, 'part1_a', 'part2_a'] ... select * from t0 where k0='01234567' Found 1 tuple: @@ -226,18 +226,18 @@ delete from t0 where k0='41234567' Delete OK, 1 row affected { box.space[0]:select(0) } --- -{} +- {} ... box.space[0]:truncate() --- ... box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'num'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'num'] ... box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'hash', 1, 1, 1, 'str') --- -0: {1, 'secondary', 1752392040, 1, 1, 1, 'str'} +- [0, 1, 'secondary', 1752392040, 1, 1, 1, 'str'] ... insert into t0 values (1, 'hello') Insert OK, 1 row affected @@ -273,11 +273,11 @@ box.space[0]:truncate() box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'str') --- -0: {0, 'primary', 1752392040, 1, 1, 0, 'str'} +- [0, 0, 'primary', 1752392040, 1, 1, 0, 'str'] ... box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 1, 1, 'str') --- -0: {1, 'secondary', 1701147252, 0, 1, 1, 'str'} +- [0, 1, 'secondary', 1701147252, 0, 1, 1, 'str'] ... insert into t0 values ('Spears', 'Britney') Insert OK, 1 row affected @@ -383,25 +383,25 @@ insert into t0 values(3, 'Creature ') Insert OK, 1 row affected { box.space[0]:select(1) } --- --1: {'Aardvark '} --2: {'Bilimbi'} --3: {'Creature '} +- - [1, 'Aardvark '] + - [2, 'Bilimbi'] + - [3, 'Creature '] ... box.space[0].index[0].idx:min() --- -error: HASH does not support min() +- error: HASH does not support min() ... box.space[0].index[0].idx:max() --- -error: HASH does not support max() +- error: HASH does not support max() ... box.space[0].index[1].idx:min() --- -1: {'Aardvark '} +- [1, 'Aardvark '] ... box.space[0].index[1].idx:max() --- -3: {'Creature '} +- [3, 'Creature '] ... delete from t0 where k0=1 Delete OK, 1 row affected diff --git a/test/big/tree_pk.result b/test/big/tree_pk.result index a2c493185a..fd163dd29e 100644 --- a/test/big/tree_pk.result +++ b/test/big/tree_pk.result @@ -3,11 +3,11 @@ dofile('utils.lua') ... box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 1, 0, 'num') --- -0: {0, 'primary', 1701147252, 1, 1, 0, 'num'} +- [0, 0, 'primary', 1701147252, 1, 1, 0, 'num'] ... s0 = box.space[0] --- @@ -15,70 +15,70 @@ s0 = box.space[0] -- integer keys s0:insert(1, 'tuple') --- -1: {'tuple'} +- [1, 'tuple'] ... box.snapshot() --- -ok +- ok ... s0:insert(2, 'tuple 2') --- -2: {'tuple 2'} +- [2, 'tuple 2'] ... box.snapshot() --- -ok +- ok ... s0:insert(3, 'tuple 3') --- -3: {'tuple 3'} +- [3, 'tuple 3'] ... s0:select(0, 1) --- -1: {'tuple'} +- [1, 'tuple'] ... s0:select(0, 2) --- -2: {'tuple 2'} +- [2, 'tuple 2'] ... s0:select(0, 3) --- -3: {'tuple 3'} +- [3, 'tuple 3'] ... -- Cleanup s0:delete(1) --- -1: {'tuple'} +- [1, 'tuple'] ... s0:delete(2) --- -2: {'tuple 2'} +- [2, 'tuple 2'] ... s0:delete(3) --- -3: {'tuple 3'} +- [3, 'tuple 3'] ... -- Test incorrect keys - supplied key field type does not match index type -- https://bugs.launchpad.net/tarantool/+bug/1072624 s0:insert('xxxxxxx') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... s0:insert('') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... s0:insert('12') --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... box.insert(box.schema.SPACE_ID, 1, 0, 'tweedledee') --- -1: {0, 'tweedledee'} +- [1, 0, 'tweedledee'] ... box.insert(box.schema.INDEX_ID, 1, 0, 'primary', 'tree', 1, 1, 0, 'str') --- -1: {0, 'primary', 1701147252, 1, 1, 0, 'str'} +- [1, 0, 'primary', 1701147252, 1, 1, 0, 'str'] ... s1 = box.space[1] --- @@ -86,57 +86,57 @@ s1 = box.space[1] -- string keys s1:insert('identifier', 'tuple') --- -'identifier': {'tuple'} +- ['identifier', 'tuple'] ... box.snapshot() --- -ok +- ok ... s1:insert('second', 'tuple 2') --- -'second': {'tuple 2'} +- ['second', 'tuple 2'] ... box.snapshot() --- -ok +- ok ... {s1:select_range(0, '100', 'second')} --- --'second': {'tuple 2'} +- - ['second', 'tuple 2'] ... {s1:select_range(0, '100', 'identifier')} --- --'identifier': {'tuple'} --'second': {'tuple 2'} +- - ['identifier', 'tuple'] + - ['second', 'tuple 2'] ... s1:insert('third', 'tuple 3') --- -'third': {'tuple 3'} +- ['third', 'tuple 3'] ... s1:select(0, 'identifier') --- -'identifier': {'tuple'} +- ['identifier', 'tuple'] ... s1:select(0, 'second') --- -'second': {'tuple 2'} +- ['second', 'tuple 2'] ... s1:select(0, 'third') --- -'third': {'tuple 3'} +- ['third', 'tuple 3'] ... -- Cleanup s1:delete('identifier') --- -'identifier': {'tuple'} +- ['identifier', 'tuple'] ... s1:delete('second') --- -'second': {'tuple 2'} +- ['second', 'tuple 2'] ... s1:delete('third') --- -'third': {'tuple 3'} +- ['third', 'tuple 3'] ... -- setopt delimiter ';' function crossjoin(space0, space1, limit) @@ -161,38 +161,38 @@ end; -- setopt delimiter '' s0:insert(1, 'tuple') --- -1: {'tuple'} +- [1, 'tuple'] ... s1:insert(1, 'tuple') --- -1: {'tuple'} +- [1, 'tuple'] ... s1:insert(2, 'tuple') --- -2: {'tuple'} +- [2, 'tuple'] ... crossjoin(s1, s1, 0) --- -{} +- {} ... crossjoin(s1, s1, 5) --- --1: {'tuple', 1, 'tuple'} --1: {'tuple', 2, 'tuple'} --2: {'tuple', 1, 'tuple'} --2: {'tuple', 2, 'tuple'} +- - [1, 'tuple', 1, 'tuple'] + - [1, 'tuple', 2, 'tuple'] + - [2, 'tuple', 1, 'tuple'] + - [2, 'tuple', 2, 'tuple'] ... crossjoin(s1, s1, 10000) --- --1: {'tuple', 1, 'tuple'} --1: {'tuple', 2, 'tuple'} --2: {'tuple', 1, 'tuple'} --2: {'tuple', 2, 'tuple'} +- - [1, 'tuple', 1, 'tuple'] + - [1, 'tuple', 2, 'tuple'] + - [2, 'tuple', 1, 'tuple'] + - [2, 'tuple', 2, 'tuple'] ... crossjoin(s1, s0, 10000) --- --1: {'tuple', 1, 'tuple'} --2: {'tuple', 1, 'tuple'} +- - [1, 'tuple', 1, 'tuple'] + - [2, 'tuple', 1, 'tuple'] ... s1:truncate() --- @@ -200,11 +200,11 @@ s1:truncate() -- Bug #922520 - select missing keys s0:insert(200, 'select me!') --- -200: {'select me!'} +- [200, 'select me!'] ... s0:select(0, 200) --- -200: {'select me!'} +- [200, 'select me!'] ... s0:select(0, 199) --- @@ -215,45 +215,45 @@ s0:select(0, 201) -- Test partially specified keys in TREE indexes s1:insert('abcd') --- -1684234849: {} +- [1684234849] ... s1:insert('abcda') --- -'abcda': {} +- ['abcda'] ... s1:insert('abcda_') --- -'abcda_': {} +- ['abcda_'] ... s1:insert('abcdb') --- -'abcdb': {} +- ['abcdb'] ... s1:insert('abcdb_') --- -'abcdb_': {} +- ['abcdb_'] ... s1:insert('abcdb__') --- -'abcdb__': {} +- ['abcdb__'] ... s1:insert('abcdb___') --- -6872316432586334817: {} +- [6872316432586334817] ... s1:insert('abcdc') --- -'abcdc': {} +- ['abcdc'] ... s1:insert('abcdc_') --- -'abcdc_': {} +- ['abcdc_'] ... box.sort({s1.index[0]:select_range(3, 'abcdb')}) --- --'abcdb': {} --'abcdb_': {} --'abcdb__': {} +- - ['abcdb'] + - ['abcdb_'] + - ['abcdb__'] ... s1:drop() --- @@ -266,40 +266,40 @@ s0:truncate() ... box.insert(box.schema.INDEX_ID, 0, 1, 'i1', 'tree', 1, 1, 1, 'num') --- -0: {1, 12649, 1701147252, 1, 1, 1, 'num'} +- [0, 1, 12649, 1701147252, 1, 1, 1, 'num'] ... box.insert(box.schema.INDEX_ID, 0, 2, 'i2', 'tree', 0, 1, 2, 'num') --- -0: {2, 12905, 1701147252, 0, 1, 2, 'num'} +- [0, 2, 12905, 1701147252, 0, 1, 2, 'num'] ... box.insert(box.schema.INDEX_ID, 0, 3, 'i3', 'tree', 1, 1, 3, 'num') --- -0: {3, 13161, 1701147252, 1, 1, 3, 'num'} +- [0, 3, 13161, 1701147252, 1, 1, 3, 'num'] ... s0:insert(0, 0, 0, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... s0:insert(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:insert(2, 2, 2, 2) --- -2: {2, 2, 2} +- [2, 2, 2, 2] ... -- OK s0:replace_if_exists(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:replace_if_exists(1, 10, 10, 10) --- -1: {10, 10, 10} +- [1, 10, 10, 10] ... s0:replace_if_exists(1, 1, 1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:select(0, 10) --- @@ -315,28 +315,28 @@ s0:select(3, 10) ... s0:select(0, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:select(1, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:select(2, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... s0:select(3, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... -- OK s0:insert(10, 10, 10, 10) --- -10: {10, 10, 10} +- [10, 10, 10, 10] ... s0:delete(10) --- -10: {10, 10, 10} +- [10, 10, 10, 10] ... s0:select(0, 10) --- @@ -353,7 +353,7 @@ s0:select(3, 10) -- TupleFound (primary key) s0:insert(1, 10, 10, 10) --- -error: Duplicate key exists in unique index 0 +- error: Duplicate key exists in unique index 0 ... s0:select(0, 10) --- @@ -369,12 +369,12 @@ s0:select(3, 10) ... s0:select(0, 1) --- -1: {1, 1, 1} +- [1, 1, 1, 1] ... -- TupleNotFound (primary key) s0:replace_if_exists(10, 10, 10, 10) --- -error: Tuple doesn't exist in index 0 +- error: Tuple doesn't exist in index 0 ... s0:select(0, 10) --- @@ -391,7 +391,7 @@ s0:select(3, 10) -- TupleFound (key #1) s0:insert(10, 0, 10, 10) --- -error: Duplicate key exists in unique index 1 +- error: Duplicate key exists in unique index 1 ... s0:select(0, 10) --- @@ -407,12 +407,12 @@ s0:select(3, 10) ... s0:select(1, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key #1) s0:replace_if_exists(2, 0, 10, 10) --- -error: Duplicate key exists in unique index 1 +- error: Duplicate key exists in unique index 1 ... s0:select(0, 10) --- @@ -428,12 +428,12 @@ s0:select(3, 10) ... s0:select(1, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key #3) s0:insert(10, 10, 10, 0) --- -error: Duplicate key exists in unique index 3 +- error: Duplicate key exists in unique index 3 ... s0:select(0, 10) --- @@ -449,12 +449,12 @@ s0:select(3, 10) ... s0:select(3, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- TupleFound (key #3) s0:replace_if_exists(2, 10, 10, 0) --- -error: Duplicate key exists in unique index 3 +- error: Duplicate key exists in unique index 3 ... s0:select(0, 10) --- @@ -470,41 +470,41 @@ s0:select(3, 10) ... s0:select(3, 0) --- -0: {0, 0, 0} +- [0, 0, 0, 0] ... -- Non-Uniq test (key #2) s0:insert(4, 4, 0, 4) --- -4: {4, 0, 4} +- [4, 4, 0, 4] ... s0:insert(5, 5, 0, 5) --- -5: {5, 0, 5} +- [5, 5, 0, 5] ... s0:insert(6, 6, 0, 6) --- -6: {6, 0, 6} +- [6, 6, 0, 6] ... s0:replace_if_exists(5, 5, 0, 5) --- -5: {5, 0, 5} +- [5, 5, 0, 5] ... box.sort({s0:select(2, 0)}) --- --0: {0, 0, 0} --4: {4, 0, 4} --5: {5, 0, 5} --6: {6, 0, 6} +- - [0, 0, 0, 0] + - [4, 4, 0, 4] + - [5, 5, 0, 5] + - [6, 6, 0, 6] ... s0:delete(5) --- -5: {5, 0, 5} +- [5, 5, 0, 5] ... box.sort({s0:select(2, 0)}) --- --0: {0, 0, 0} --4: {4, 0, 4} --6: {6, 0, 6} +- - [0, 0, 0, 0] + - [4, 4, 0, 4] + - [6, 6, 0, 6] ... s0:drop() --- diff --git a/test/big/tree_pk_multipart.result b/test/big/tree_pk_multipart.result index 729d3765f0..72ac3a3814 100644 --- a/test/big/tree_pk_multipart.result +++ b/test/big/tree_pk_multipart.result @@ -3,95 +3,95 @@ -- box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... -- Multipart primary key (sender nickname, receiver nickname, message id) box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 3, 0, 'str', 1, 'str', 2, 'num') --- -0: {0, 'primary', 1701147252, 1, 3, 0, 'str', 1, 'str', 2, 'num'} +- [0, 0, 'primary', 1701147252, 1, 3, 0, 'str', 1, 'str', 2, 'num'] ... space = box.space[0] --- ... space:insert('Vincent', 'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?') --- -'Vincent': {'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'} +- ['Vincent', 'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'] ... space:insert('Jules', 'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?') --- -'Jules': {'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'} +- ['Jules', 'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'] ... space:insert('Vincent', 'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.') --- -'Vincent': {'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'} +- ['Vincent', 'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'] ... space:insert('Jules', 'Vincent', 1, 'Then what do they call it?') --- -'Jules': {'Vincent', 1, 'Then what do they call it?'} +- ['Jules', 'Vincent', 1, 'Then what do they call it?'] ... space:insert('Vincent', 'Jules', 2, 'They call it a `Royale` with cheese.') --- -'Vincent': {'Jules', 2, 'They call it a `Royale` with cheese.'} +- ['Vincent', 'Jules', 2, 'They call it a `Royale` with cheese.'] ... space:insert('Jules', 'Vincent', 2, 'A `Royale` with cheese!') --- -'Jules': {'Vincent', 2, 'A `Royale` with cheese!'} +- ['Jules', 'Vincent', 2, 'A `Royale` with cheese!'] ... space:insert('Vincent', 'Jules', 3, 'That`s right.') --- -'Vincent': {'Jules', 3, 'That`s right.'} +- ['Vincent', 'Jules', 3, 'That`s right.'] ... space:insert('Jules', 'Vincent', 3, 'What do they call a Big Mac?') --- -'Jules': {'Vincent', 3, 'What do they call a Big Mac?'} +- ['Jules', 'Vincent', 3, 'What do they call a Big Mac?'] ... space:insert('Vincent', 'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`') --- -'Vincent': {'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'} +- ['Vincent', 'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'] ... space:insert('Jules', 'Vincent', 4, '`Le Big Mac!`') --- -'Jules': {'Vincent', 4, '`Le Big Mac!`'} +- ['Jules', 'Vincent', 4, '`Le Big Mac!`'] ... space:insert('Vincent', 'Jules', 5, 'Ha, ha, ha.') --- -'Vincent': {'Jules', 5, 'Ha, ha, ha.'} +- ['Vincent', 'Jules', 5, 'Ha, ha, ha.'] ... space:insert('Jules', 'Vincent', 5, 'What do they call a `Whopper`?') --- -'Jules': {'Vincent', 5, 'What do they call a `Whopper`?'} +- ['Jules', 'Vincent', 5, 'What do they call a `Whopper`?'] ... space:insert('Vincent', 'Jules', 6, 'I dunno, I didn`t go into Burger King.') --- -'Vincent': {'Jules', 6, 'I dunno, I didn`t go into Burger King.'} +- ['Vincent', 'Jules', 6, 'I dunno, I didn`t go into Burger King.'] ... space:insert('The Wolf!', 'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.') --- -'The Wolf!': {'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'} +- ['The Wolf!', 'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'] ... space:insert('Vincent', 'The Wolf!', 0, 'A please would be nice.') --- -'Vincent': {'The Wolf!', 0, 'A please would be nice.'} +- ['Vincent', 'The Wolf!', 0, 'A please would be nice.'] ... space:insert('The Wolf!', 'Vincent', 1, 'Come again?') --- -'The Wolf!': {'Vincent', 1, 'Come again?'} +- ['The Wolf!', 'Vincent', 1, 'Come again?'] ... space:insert('Vincent', 'The Wolf!', 1, 'I said a please would be nice.') --- -'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} +- ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] ... space:insert('The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.') --- -'The Wolf!': {'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'} +- ['The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'] ... space:insert('The Wolf!', 'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.') --- -'The Wolf!': {'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'} +- ['The Wolf!', 'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'] ... space:insert('Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.') --- -'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- -- Select test @@ -99,133 +99,133 @@ space:insert('Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time -- Select by one entry space:select(0, 'Vincent', 'Jules', 0) --- -'Vincent': {'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'} +- ['Vincent', 'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'] ... space:select(0, 'Jules', 'Vincent', 0) --- -'Jules': {'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'} +- ['Jules', 'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'] ... space:select(0, 'Vincent', 'Jules', 1) --- -'Vincent': {'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'} +- ['Vincent', 'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'] ... space:select(0, 'Jules', 'Vincent', 1) --- -'Jules': {'Vincent', 1, 'Then what do they call it?'} +- ['Jules', 'Vincent', 1, 'Then what do they call it?'] ... space:select(0, 'Vincent', 'Jules', 2) --- -'Vincent': {'Jules', 2, 'They call it a `Royale` with cheese.'} +- ['Vincent', 'Jules', 2, 'They call it a `Royale` with cheese.'] ... space:select(0, 'Jules', 'Vincent', 2) --- -'Jules': {'Vincent', 2, 'A `Royale` with cheese!'} +- ['Jules', 'Vincent', 2, 'A `Royale` with cheese!'] ... space:select(0, 'Vincent', 'Jules', 3) --- -'Vincent': {'Jules', 3, 'That`s right.'} +- ['Vincent', 'Jules', 3, 'That`s right.'] ... space:select(0, 'Jules', 'Vincent', 3) --- -'Jules': {'Vincent', 3, 'What do they call a Big Mac?'} +- ['Jules', 'Vincent', 3, 'What do they call a Big Mac?'] ... space:select(0, 'Vincent', 'Jules', 4) --- -'Vincent': {'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'} +- ['Vincent', 'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'] ... space:select(0, 'Jules', 'Vincent', 4) --- -'Jules': {'Vincent', 4, '`Le Big Mac!`'} +- ['Jules', 'Vincent', 4, '`Le Big Mac!`'] ... space:select(0, 'Vincent', 'Jules', 5) --- -'Vincent': {'Jules', 5, 'Ha, ha, ha.'} +- ['Vincent', 'Jules', 5, 'Ha, ha, ha.'] ... space:select(0, 'Jules', 'Vincent', 5) --- -'Jules': {'Vincent', 5, 'What do they call a `Whopper`?'} +- ['Jules', 'Vincent', 5, 'What do they call a `Whopper`?'] ... space:select(0, 'Vincent', 'Jules', 6) --- -'Vincent': {'Jules', 6, 'I dunno, I didn`t go into Burger King.'} +- ['Vincent', 'Jules', 6, 'I dunno, I didn`t go into Burger King.'] ... space:select(0, 'The Wolf!', 'Vincent', 0) --- -'The Wolf!': {'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'} +- ['The Wolf!', 'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'] ... space:select(0, 'Vincent', 'The Wolf!', 0) --- -'Vincent': {'The Wolf!', 0, 'A please would be nice.'} +- ['Vincent', 'The Wolf!', 0, 'A please would be nice.'] ... space:select(0, 'The Wolf!', 'Vincent', 1) --- -'The Wolf!': {'Vincent', 1, 'Come again?'} +- ['The Wolf!', 'Vincent', 1, 'Come again?'] ... space:select(0, 'Vincent', 'The Wolf!', 1) --- -'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} +- ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] ... space:select(0, 'The Wolf!', 'Vincent', 2) --- -'The Wolf!': {'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'} +- ['The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'] ... space:select(0, 'The Wolf!', 'Vincent', 3) --- -'The Wolf!': {'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'} +- ['The Wolf!', 'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'] ... space:select(0, 'Vincent', 'The Wolf!', 2) --- -'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- Select all messages from Vincent to Jules {space:select(0, 'Vincent', 'Jules')} --- --'Vincent': {'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'} --'Vincent': {'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'} --'Vincent': {'Jules', 2, 'They call it a `Royale` with cheese.'} --'Vincent': {'Jules', 3, 'That`s right.'} --'Vincent': {'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'} --'Vincent': {'Jules', 5, 'Ha, ha, ha.'} --'Vincent': {'Jules', 6, 'I dunno, I didn`t go into Burger King.'} +- - ['Vincent', 'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'] + - ['Vincent', 'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'] + - ['Vincent', 'Jules', 2, 'They call it a `Royale` with cheese.'] + - ['Vincent', 'Jules', 3, 'That`s right.'] + - ['Vincent', 'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'] + - ['Vincent', 'Jules', 5, 'Ha, ha, ha.'] + - ['Vincent', 'Jules', 6, 'I dunno, I didn`t go into Burger King.'] ... -- Select all messages from Jules to Vincent {space:select(0, 'Jules', 'Vincent')} --- --'Jules': {'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'} --'Jules': {'Vincent', 1, 'Then what do they call it?'} --'Jules': {'Vincent', 2, 'A `Royale` with cheese!'} --'Jules': {'Vincent', 3, 'What do they call a Big Mac?'} --'Jules': {'Vincent', 4, '`Le Big Mac!`'} --'Jules': {'Vincent', 5, 'What do they call a `Whopper`?'} +- - ['Jules', 'Vincent', 0, 'They don`t call it a Quarter Pounder with cheese?'] + - ['Jules', 'Vincent', 1, 'Then what do they call it?'] + - ['Jules', 'Vincent', 2, 'A `Royale` with cheese!'] + - ['Jules', 'Vincent', 3, 'What do they call a Big Mac?'] + - ['Jules', 'Vincent', 4, '`Le Big Mac!`'] + - ['Jules', 'Vincent', 5, 'What do they call a `Whopper`?'] ... -- Select all messages from Vincent to The Wolf {space:select(0, 'Vincent', 'The Wolf!')} --- --'Vincent': {'The Wolf!', 0, 'A please would be nice.'} --'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} --'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- - ['Vincent', 'The Wolf!', 0, 'A please would be nice.'] + - ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] + - ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- Select all messages from The Wolf to Vincent {space:select(0, 'The Wolf!', 'Vincent')} --- --'The Wolf!': {'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'} --'The Wolf!': {'Vincent', 1, 'Come again?'} --'The Wolf!': {'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'} --'The Wolf!': {'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'} +- - ['The Wolf!', 'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'] + - ['The Wolf!', 'Vincent', 1, 'Come again?'] + - ['The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'] + - ['The Wolf!', 'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'] ... -- Select all Vincent messages {space:select(0, 'Vincent')} --- --'Vincent': {'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'} --'Vincent': {'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'} --'Vincent': {'Jules', 2, 'They call it a `Royale` with cheese.'} --'Vincent': {'Jules', 3, 'That`s right.'} --'Vincent': {'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'} --'Vincent': {'Jules', 5, 'Ha, ha, ha.'} --'Vincent': {'Jules', 6, 'I dunno, I didn`t go into Burger King.'} --'Vincent': {'The Wolf!', 0, 'A please would be nice.'} --'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} --'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- - ['Vincent', 'Jules', 0, 'Do you know what they call a - a - a Quarter Pounder with cheese in Paris?'] + - ['Vincent', 'Jules', 1, 'No man, they got the metric system. They wouldn`t know what the f--k a Quarter Pounder is.'] + - ['Vincent', 'Jules', 2, 'They call it a `Royale` with cheese.'] + - ['Vincent', 'Jules', 3, 'That`s right.'] + - ['Vincent', 'Jules', 4, 'A Big Mac`s a Big Mac, but they call it `Le Big Mac.`'] + - ['Vincent', 'Jules', 5, 'Ha, ha, ha.'] + - ['Vincent', 'Jules', 6, 'I dunno, I didn`t go into Burger King.'] + - ['Vincent', 'The Wolf!', 0, 'A please would be nice.'] + - ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] + - ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- -- Delete test @@ -233,35 +233,35 @@ space:select(0, 'Vincent', 'The Wolf!', 2) -- Delete some messages from the The Wolf and Vincent dialog space:delete('The Wolf!', 'Vincent', 0) --- -'The Wolf!': {'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'} +- ['The Wolf!', 'Vincent', 0, 'Jimmie, lead the way. Boys, get to work.'] ... space:delete('The Wolf!', 'Vincent', 3) --- -'The Wolf!': {'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'} +- ['The Wolf!', 'Vincent', 3, 'I don`t mean any disrespect, I just don`t like people barking orders at me.'] ... space:delete('Vincent', 'The Wolf!', 0) --- -'Vincent': {'The Wolf!', 0, 'A please would be nice.'} +- ['Vincent', 'The Wolf!', 0, 'A please would be nice.'] ... space:update({'Vincent', 'The Wolf!', 1}, '=p=p', 0, 'Updated', 4, 'New') --- -'Updated': {'The Wolf!', 1, 'I said a please would be nice.', 'New'} +- ['Updated', 'The Wolf!', 1, 'I said a please would be nice.', 'New'] ... space:update({'Updated', 'The Wolf!', 1}, '=p#p', 0, 'Vincent', 4, '') --- -'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} +- ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] ... -- Checking Vincent's last messages {space:select(0, 'Vincent', 'The Wolf!')} --- --'Vincent': {'The Wolf!', 1, 'I said a please would be nice.'} --'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- - ['Vincent', 'The Wolf!', 1, 'I said a please would be nice.'] + - ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- Checking The Wolf's last messages {space:select(0, 'The Wolf!', 'Vincent')} --- --'The Wolf!': {'Vincent', 1, 'Come again?'} --'The Wolf!': {'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'} +- - ['The Wolf!', 'Vincent', 1, 'Come again?'] + - ['The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'] ... -- try to delete nonexistent message space:delete('Vincent', 'The Wolf!', 3) @@ -270,35 +270,35 @@ space:delete('Vincent', 'The Wolf!', 3) -- try to delete patrial defined key space:delete('Vincent', 'The Wolf!') --- -error: Invalid key part count in an exact match (expected 3, got 2) +- error: Invalid key part count in an exact match (expected 3, got 2) ... -- try to delete by invalid key space:delete('The Wolf!', 'Vincent', 1, 'Come again?') --- -error: Invalid key part count in an exact match (expected 3, got 4) +- error: Invalid key part count in an exact match (expected 3, got 4) ... -- -- Update test -- space:update({'The Wolf!', 'Vincent', 1}, '=p', 3, '<ooops>') --- -'The Wolf!': {'Vincent', 1, '<ooops>'} +- ['The Wolf!', 'Vincent', 1, '<ooops>'] ... space:update({'Vincent', 'The Wolf!', 1}, '=p', 3, '<ooops>') --- -'Vincent': {'The Wolf!', 1, '<ooops>'} +- ['Vincent', 'The Wolf!', 1, '<ooops>'] ... -- Checking Vincent's last messages {space:select(0, 'Vincent', 'The Wolf!')} --- --'Vincent': {'The Wolf!', 1, '<ooops>'} --'Vincent': {'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'} +- - ['Vincent', 'The Wolf!', 1, '<ooops>'] + - ['Vincent', 'The Wolf!', 2, 'If I`m curt with you it`s because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the fucking car.'] ... -- Checking The Wolf's last messages {space:select(0, 'The Wolf!', 'Vincent')} --- --'The Wolf!': {'Vincent', 1, '<ooops>'} --'The Wolf!': {'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'} +- - ['The Wolf!', 'Vincent', 1, '<ooops>'] + - ['The Wolf!', 'Vincent', 2, 'Get it straight buster - I`m not here to say please, I`m here to tell you what to do and if self-preservation is an instinct you possess you`d better fucking do it and do it quick. I`m here to help - if my help`s not appreciated then lotsa luck, gentlemen.'] ... -- try to update a nonexistent message space:update({'Vincent', 'The Wolf!', 3}, '=p', 3, '<ooops>') @@ -307,57 +307,57 @@ space:update({'Vincent', 'The Wolf!', 3}, '=p', 3, '<ooops>') -- try to update patrial defined key space:update({'Vincent', 'The Wolf!'}, '=p', 3, '<ooops>') --- -error: Invalid key part count in an exact match (expected 3, got 2) +- error: Invalid key part count in an exact match (expected 3, got 2) ... -- try to update by invalid key space:update({'The Wolf!', 'Vincent', 1, 'Come again?'}, '=p', 3, '<ooops>') --- -error: Invalid key part count in an exact match (expected 3, got 4) +- error: Invalid key part count in an exact match (expected 3, got 4) ... space:len() --- -17 +- 17 ... space:truncate() --- ... space:len() --- -0 +- 0 ... -- A test case for Bug#1051006 Tree iterators return garbage --if an index is modified between calls -- box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 1, 0, 'str') --- -0: {0, 'primary', 1701147252, 1, 1, 0, 'str'} +- [0, 0, 'primary', 1701147252, 1, 1, 0, 'str'] ... box.replace(box.schema.INDEX_ID, 0, 1, 'second', 'tree', 1, 2, 1, 'str', 2, 'str') --- -0: {1, 'second', 1701147252, 1, 2, 1, 'str', 2, 'str'} +- [0, 1, 'second', 1701147252, 1, 2, 1, 'str', 2, 'str'] ... space = box.space[0] --- ... space:insert('a', 'a', 'a') --- -'a': {'a', 'a'} +- ['a', 'a', 'a'] ... space:insert('d', 'd', 'd') --- -'d': {'d', 'd'} +- ['d', 'd', 'd'] ... space:insert('e', 'e', 'e') --- -'e': {'e', 'e'} +- ['e', 'e', 'e'] ... space:insert('b', 'b', 'b') --- -'b': {'b', 'b'} +- ['b', 'b', 'b'] ... space:insert('c', 'c', 'c') --- -'c': {'c', 'c'} +- ['c', 'c', 'c'] ... t = {} --- @@ -372,38 +372,38 @@ end; -- setopt delimiter '' t --- --'a': {'a', 'a'} --'b': {'b', 'b'} +- - ['a', 'a', 'a'] + - ['b', 'b', 'b'] ... space:truncate() --- ... v --- -'b': {'b', 'b'} +- ['b', 'b', 'b'] ... collectgarbage('collect') --- -0 +- 0 ... v --- -'b': {'b', 'b'} +- ['b', 'b', 'b'] ... k,v = space.index[1]:next(k) --- ... v --- -null +{} ... collectgarbage('collect') --- -0 +- 0 ... v --- -null +{} ... t = {} --- @@ -418,7 +418,7 @@ end; -- setopt delimiter '' t --- -{} +- {} ... space:drop() --- @@ -427,23 +427,23 @@ space:drop() -- Space #19, https://bugs.launchpad.net/tarantool/+bug/1082356 box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... -- Multipart primary key (sender nickname, receiver nickname, message id) box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 2, 0, 'num', 2, 'num') --- -0: {0, 'primary', 1701147252, 1, 2, 0, 'num', 2, 'num'} +- [0, 0, 'primary', 1701147252, 1, 2, 0, 'num', 2, 'num'] ... space = box.space[0] --- ... space:insert(1, 1) --- -error: Illegal parameters, tuple must have all indexed fields +- error: Illegal parameters, tuple must have all indexed fields ... space:replace_if_exists(1, 1) --- -error: Illegal parameters, tuple must have all indexed fields +- error: Illegal parameters, tuple must have all indexed fields ... space:drop() --- diff --git a/test/big/tree_variants.result b/test/big/tree_variants.result index ec7f2a5fb4..aeace29a9a 100644 --- a/test/big/tree_variants.result +++ b/test/big/tree_variants.result @@ -1,208 +1,208 @@ box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum') --- -0: {0, 'tweedledum'} +- [0, 0, 'tweedledum'] ... box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'tree', 1, 1, 0, 'num') --- -0: {0, 'primary', 1701147252, 1, 1, 0, 'num'} +- [0, 0, 'primary', 1701147252, 1, 1, 0, 'num'] ... box.insert(box.schema.INDEX_ID, 0, 1, 'i1', 'tree', 1, 1, 1, 'num64') --- -0: {1, 12649, 1701147252, 1, 1, 1, 'num64'} +- [0, 1, 12649, 1701147252, 1, 1, 1, 'num64'] ... box.insert(box.schema.INDEX_ID, 0, 2, 'i2', 'tree', 0, 1, 2, 'num64') --- -0: {2, 12905, 1701147252, 0, 1, 2, 'num64'} +- [0, 2, 12905, 1701147252, 0, 1, 2, 'num64'] ... box.insert(box.schema.INDEX_ID, 0, 3, 'i3', 'tree', 0, 2, 3, 'str', 4, 'str') --- -0: {3, 13161, 1701147252, 0, 2, 3, 'str', 4, 'str'} +- [0, 3, 13161, 1701147252, 0, 2, 3, 'str', 4, 'str'] ... box.insert(box.schema.INDEX_ID, 0, 4, 'i4', 'tree', 0, 2, 6, 'str', 5, 'str') --- -0: {4, 13417, 1701147252, 0, 2, 6, 'str', 5, 'str'} +- [0, 4, 13417, 1701147252, 0, 2, 6, 'str', 5, 'str'] ... box.insert(box.schema.INDEX_ID, 0, 5, 'i5', 'tree', 0, 1, 8, 'num') --- -0: {5, 13673, 1701147252, 0, 1, 8, 'num'} +- [0, 5, 13673, 1701147252, 0, 1, 8, 'num'] ... box.insert(box.schema.INDEX_ID, 0, 6, 'i6', 'tree', 1, 5, 6, 'str', 5, 'str', 3, 'str', 4, 'str', 8, 'num') --- -0: {6, 13929, 1701147252, 1, 5, 6, 'str', 5, 'str', 3, 'str', 4, 'str', 8, 'num'} +- [0, 6, 13929, 1701147252, 1, 5, 6, 'str', 5, 'str', 3, 'str', 4, 'str', 8, 'num'] ... space = box.space[0] --- ... space:insert(0, '00000000', '00000100', 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000) --- -0: {3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000} +- [0, 3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000] ... space:insert(1, '00000001', '00000200', 'Joe', 'Sixpack', 'Drinks', 'Heineken', 'bar', 2001) --- -1: {3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001} +- [1, 3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001] ... space:insert(2, '00000002', '00000200', 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002) --- -2: {3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002} +- [2, 3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002] ... space:insert(3, '00000003', '00000300', 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003) --- -3: {3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003} +- [3, 3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003] ... space:insert(4, '00000004', '00000300', 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004) --- -4: {3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004} +- [4, 3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004] ... space:insert(5, '00000005', '00000300', 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005) --- -5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} +- [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] ... space:insert(6, '00000006', '00000400', 'John', 'Smoker', 'Hits', 'A Pipe', 'foo', 2006) --- -6: {3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- [6, 3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... space:insert(7, '00000007', '00000400', 'John', 'Smoker', 'Hits', 'A Bong', 'foo', 2007) --- -7: {3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} +- [7, 3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] ... space:insert(8, '00000008', '00000400', 'John', 'Smoker', 'Rolls', 'A Joint', 'foo', 2008) --- -8: {4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} +- [8, 4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] ... space:insert(9, '00000009', '00000400', 'John', 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009) --- -9: {4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- [9, 4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... space:select(0, 1) --- -1: {3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001} +- [1, 3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001] ... space:select(1,'00000002') --- -2: {3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002} +- [2, 3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002] ... {space:select(2,'00000300')} --- --3: {3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003} --4: {3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004} --5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} +- - [3, 3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003] + - [4, 3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004] + - [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] ... {space:select(3, 'Joe', 'Sixpack')} --- --0: {3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000} --1: {3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001} --2: {3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002} --3: {3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003} --4: {3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004} --5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} +- - [0, 3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000] + - [1, 3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001] + - [2, 3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002] + - [3, 3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003] + - [4, 3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004] + - [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] ... {space:select(3, 'John')} --- --6: {3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} --7: {3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} --8: {4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} --9: {4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- - [6, 3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] + - [7, 3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] + - [8, 4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] + - [9, 4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... {space:select(4, 'A Pipe')} --- --6: {3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- - [6, 3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... {space:select(4, 'Miller Genuine Draft', 'Drinks')} --- --5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} +- - [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] ... space:select(5, 2007) --- -7: {3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} +- [7, 3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] ... space:select(6, 'Miller Genuine Draft', 'Drinks') --- -5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} +- [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] ... space:delete(6) --- -6: {3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- [6, 3904673860455247920, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... space:delete(7) --- -7: {3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} +- [7, 3976731454493175856, 3472332694274191408, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] ... space:delete(8) --- -8: {4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} +- [8, 4048789048531103792, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] ... space:delete(9) --- -9: {4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- [9, 4120846642569031728, 3472332694274191408, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... space:insert(6, 6ULL, 400ULL, 'John', 'Smoker', 'Hits', 'A Pipe', 'foo', 2006) --- -6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... space:insert(7, 7ULL, 400ULL, 'John', 'Smoker', 'Hits', 'A Bong', 'foo', 2007) --- -7: {7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} +- [7, 7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] ... space:insert(8, 8ULL, 400ULL, 'John', 'Smoker', 'Rolls', 'A Joint', 'foo', 2008) --- -8: {8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} +- [8, 8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] ... space:insert(9, 9ULL, 400ULL, 'John', 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009) --- -9: {9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- [9, 9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... space:select(1, 6ULL) --- -6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... space:select(1, 6) --- -6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} +- [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] ... {space:select(2, 400ULL)} --- --6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} --7: {7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} --8: {8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} --9: {9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- - [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] + - [7, 7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] + - [8, 8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] + - [9, 9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... {space:select(2, 400)} --- --6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} --7: {7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} --8: {8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} --9: {9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- - [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] + - [7, 7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] + - [8, 8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] + - [9, 9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... {space:select(0)} --- --0: {3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000} --1: {3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001} --2: {3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002} --3: {3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003} --4: {3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004} --5: {3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005} --6: {6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006} --7: {7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007} --8: {8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008} --9: {9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009} +- - [0, 3472328296227680304, 3472329395739308080, 'Joe', 'Sixpack', 'Drinks', 'Amstel', 'bar', 2000] + - [1, 3544385890265608240, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 7954882400208119112, 'bar', 2001] + - [2, 3616443484303536176, 3472330495250935856, 'Joe', 'Sixpack', 'Drinks', 'Carlsberg', 'bar', 2002] + - [3, 3688501078341464112, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Corona Extra', 'bar', 2003] + - [4, 3760558672379392048, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Stella Artois', 'bar', 2004] + - [5, 3832616266417319984, 3472331594762563632, 'Joe', 'Sixpack', 'Drinks', 'Miller Genuine Draft', 'bar', 2005] + - [6, 6, 400, 1852337994, 'Smoker', 1937008968, 'A Pipe', 'foo', 2006] + - [7, 7, 400, 1852337994, 'Smoker', 1937008968, 'A Bong', 'foo', 2007] + - [8, 8, 400, 1852337994, 'Smoker', 'Rolls', 'A Joint', 'foo', 2008] + - [9, 9, 400, 1852337994, 'Smoker', 'Rolls', 'A Blunt', 'foo', 2009] ... -- Test incorrect keys - supplied key field type does not match index type -- https://bugs.launchpad.net/tarantool/+bug/1072624 space:insert('', '00000001', '00000002', '', '', '', '', '', 0) --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... space:insert('xxxxxxxx', '00000001', '00000002', '', '', '', '', '', 0) --- -error: 'Tuple field 0 type does not match one required by operation: expected NUM' +- error: 'Tuple field 0 type does not match one required by operation: expected NUM' ... space:insert(1, '', '00000002', '', '', '', '', '', 0) --- -error: 'Tuple field 1 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 1 type does not match one required by operation: expected NUM64' ... space:insert(1, 'xxxxxxxxxxx', '00000002', '', '', '', '', '', 0) --- -error: 'Tuple field 1 type does not match one required by operation: expected NUM64' +- error: 'Tuple field 1 type does not match one required by operation: expected NUM64' ... space:drop() --- -- GitLab