From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Imeev Mergen <imeevma@tarantool.org>, tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: hold in stat tables space/index id instead of name
Date: Wed, 29 Aug 2018 16:27:03 -0300 [thread overview]
Message-ID: <7f90f218-d01c-d9c6-bc8c-3e8a29c76ebd@tarantool.org> (raw)
In-Reply-To: <c2f05e4c-2942-09d6-5874-fa3f9384f906@tarantool.org>
Hi! Thanks for the fixes!
I have force pushed my review fixes. I removed
some leading white spaces and useless assertions.
The diff is below.
Please, fetch, rebase and send to Nikita on the
second review.
diff --git a/src/box/sql/analyze.c b/src/box/sql/analyze.c
index a7cc173cd..3d825acb9 100644
--- a/src/box/sql/analyze.c
+++ b/src/box/sql/analyze.c
@@ -1016,8 +1016,6 @@ analyzeOneTable(Parse * pParse, /* Parser context */
/* Add the entry to the stat1 table. */
callStatGet(v, regStat4, STAT_GET_STAT1, regStat1);
- assert("DDB"[0] == AFFINITY_INTEGER);
- assert("BBB"[2] == AFFINITY_TEXT);
sqlite3VdbeAddOp4(v, OP_MakeRecord, reg_space_id, 3, regTemp,
"DDB", 0);
sqlite3VdbeAddOp2(v, OP_IdxInsert, iStatCur, regTemp);
diff --git a/test/sql-tap/analyze9.test.lua b/test/sql-tap/analyze9.test.lua
index b0fec3b1c..2c6b4b8a0 100755
--- a/test/sql-tap/analyze9.test.lua
+++ b/test/sql-tap/analyze9.test.lua
@@ -70,8 +70,8 @@ test:do_execsql_test(
SELECT "idx","neq","nlt","ndlt",msgpack_decode_sample("sample") FROM "_sql_stat4" where "idx" = %i;
]], t1.index['I1'].id), {
-- <1.2>
- 1, "1 1", "0 0", "0 0", "(0) (0)", 1, "1 1", "1 1", "1 1", "(1) (1)",
- 1, "1 1", "2 2", "2 2", "(2) (2)", 1, "1 1", "3 3", "3 3", "(3) (3)",
+ 1, "1 1", "0 0", "0 0", "(0) (0)", 1, "1 1", "1 1", "1 1", "(1) (1)",
+ 1, "1 1", "2 2", "2 2", "(2) (2)", 1, "1 1", "3 3", "3 3", "(3) (3)",
1, "1 1", "4 4", "4 4", "(4) (4)"
-- </1.2>
})
@@ -82,8 +82,8 @@ test:do_execsql_test(
SELECT "idx","neq","nlt","ndlt",msgpack_decode_sample("sample") FROM "_sql_stat4" where "idx" = %i;
]], t1.index[0].id), {
-- <1.3>
- 0, '1', '0', '0', '(0)', 0, '1', '1', '1', '(1)',
- 0, '1', '2', '2', '(2)', 0, '1', '3', '3', '(3)',
+ 0, '1', '0', '0', '(0)', 0, '1', '1', '1', '(1)',
+ 0, '1', '2', '2', '(2)', 0, '1', '3', '3', '(3)',
0, '1', '4', '4', '(4)'
-- </1.3>
})
prev parent reply other threads:[~2018-08-29 19:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-23 9:51 [tarantool-patches] " imeevma
2018-08-27 16:32 ` [tarantool-patches] " Vladislav Shpilevoy
2018-08-29 11:37 ` Imeev Mergen
2018-08-29 19:27 ` Vladislav Shpilevoy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f90f218-d01c-d9c6-bc8c-3e8a29c76ebd@tarantool.org \
--to=v.shpilevoy@tarantool.org \
--cc=imeevma@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH v1 1/1] sql: hold in stat tables space/index id instead of name' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox