I've been trying to create a testcase involving a reported broken query running over 3 keyspaces. I've been unable to get the testcase to start.
CREATE TABLE ks1.table1 (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
table2_id BIGINT UNSIGNED NOT NULL,
table3_id BIGINT UNSIGNED NOT NULL,
data JSON
);
CREATE TABLE ks2.table2 (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
data JSON
);
CREATE TABLE ks3.table3 (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
data JSON
);
INSERT INTO ks2.table2 VALUES
(1, "{}"),
(2, "{}"),
(3, "{}"),
(4, "{}"),
(5, "{}"),
(6, "{}");
INSERT INTO ks3.table3 VALUES
(1, "{}"),
(2, "{}"),
(3, "{}"),
(4, "{}"),
(5, "{}"),
(6, "{}");
INSERT INTO ks1.table1 VALUES
(1, 1, 1, "{}"),
(2, 2, 1, "{}"),
(3, 3, 1, "{}"),
(4, 4, 1, "{}"),
(5, 5, 1, "{}"),
(6, 6, 1, "{}"),
(1, 1, 2, "{}"),
(2, 2, 2, "{}"),
(3, 3, 2, "{}"),
(4, 4, 2, "{}"),
(5, 5, 2, "{}"),
(6, 6, 2, "{}"),
(1, 1, 3, "{}"),
(2, 2, 3, "{}"),
(3, 3, 3, "{}"),
(4, 4, 3, "{}"),
(5, 5, 3, "{}"),
(6, 6, 3, "{}"),
(1, 1, 4, "{}"),
(2, 2, 4, "{}"),
(3, 3, 4, "{}"),
(4, 4, 4, "{}"),
(5, 5, 4, "{}"),
(6, 6, 4, "{}"),
(1, 1, 5, "{}"),
(2, 2, 5, "{}"),
(3, 3, 5, "{}"),
(4, 4, 5, "{}"),
(5, 5, 5, "{}"),
(6, 6, 5, "{}"),
(1, 1, 6, "{}"),
(2, 2, 6, "{}"),
(3, 3, 6, "{}"),
(4, 4, 6, "{}"),
(5, 5, 6, "{}"),
(6, 6, 6, "{}");
SELECT a.id, b.id, c.id
FROM
table1 a
INNER JOIN table2 b ON a.table2_id = b.id
INNER JOIN table3 c ON a.table3_id = c.id
WHERE
a.id = 1;
this is the resulting directory layout in my ${VTDATAROOT} directory.
I've been trying to create a testcase involving a reported broken query running over 3 keyspaces. I've been unable to get the testcase to start.
I've crafted the following vschema (vtexplain style)
and this test case
then I run the
vt testtool like this:this is the resulting directory layout in my ${VTDATAROOT} directory.