Commit 6c4076fa authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-30032: EXPLAIN FORMAT=JSON output: part #2: print 'loops'.

parent ffe0beca
......@@ -18,6 +18,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -56,6 +57,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -76,6 +78,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"r_loops": 0,
"rows": 1,
"r_rows": null,
......@@ -109,6 +112,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -129,6 +133,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 1,
......@@ -165,6 +170,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -181,6 +187,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
"loops": 100,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -218,6 +225,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -234,6 +242,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
"loops": 100,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -280,6 +289,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -300,6 +310,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t1.a"],
"loops": 10,
"r_loops": 10,
"rows": 2,
"r_rows": 0.2,
......@@ -344,6 +355,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -414,6 +426,7 @@ ANALYZE
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -492,6 +505,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
......@@ -519,6 +533,7 @@ ANALYZE
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["key1", "key2", "key3", "key4"],
"loops": 5,
"r_loops": 5,
"rows": 1010,
"r_rows": 203.8,
......@@ -565,6 +580,7 @@ ANALYZE
"table": {
"table_name": "tbl1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -591,6 +607,7 @@ ANALYZE
"table": {
"table_name": "tbl2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -650,6 +667,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
......@@ -691,6 +709,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
......@@ -746,6 +765,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 256,
"r_rows": 256,
......@@ -785,6 +805,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -800,6 +821,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -831,6 +853,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -897,6 +920,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -912,6 +936,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -943,6 +968,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 0,
"rows": 2,
"r_rows": null,
......@@ -956,6 +982,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 2,
"r_loops": 0,
"rows": 2,
"r_rows": null,
......@@ -1007,6 +1034,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -1041,6 +1069,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 0,
"rows": 10,
"r_rows": null,
......
......@@ -191,6 +191,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -206,6 +207,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -242,6 +244,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -262,6 +265,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 0.4,
......@@ -300,6 +304,7 @@ EXPLAIN
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -317,6 +322,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -352,6 +358,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -374,6 +381,7 @@ ANALYZE
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t0.a"],
"loops": 10,
"r_loops": 10,
"rows": 1,
"r_rows": 0.4,
......@@ -425,6 +433,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 1000,
"r_rows": 1000,
......@@ -483,6 +492,7 @@ ANALYZE
"table": {
"table_name": "t0",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -498,6 +508,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 10,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -570,6 +581,7 @@ ANALYZE
"table": {
"table_name": "t6",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
......@@ -586,6 +598,7 @@ ANALYZE
"table": {
"table_name": "t5",
"access_type": "ALL",
"loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -630,6 +643,7 @@ EXPLAIN
"table": {
"table_name": "t6",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -641,6 +655,7 @@ EXPLAIN
"table": {
"table_name": "t5",
"access_type": "ALL",
"loops": 5,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -700,6 +715,7 @@ ANALYZE
"key": "idx",
"key_length": "5",
"used_key_parts": ["col1"],
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 20,
......
......@@ -270,6 +270,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -302,6 +303,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -339,6 +341,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -358,6 +361,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -397,6 +401,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -416,6 +421,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -466,6 +472,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -486,6 +493,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -1345,6 +1345,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
"loops": 1,
"rows": 24,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1363,6 +1364,7 @@ EXPLAIN
"table": {
"table_name": "folks",
"access_type": "ALL",
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1382,6 +1384,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1401,6 +1404,7 @@ EXPLAIN
"table": {
"table_name": "folks",
"access_type": "ALL",
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1421,6 +1425,7 @@ EXPLAIN
"table_name": "folks",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1431,6 +1436,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 12,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1463,6 +1469,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
"loops": 1,
"rows": 24,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1518,6 +1525,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1536,6 +1544,7 @@ EXPLAIN
"table": {
"table_name": "v",
"access_type": "ALL",
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1551,6 +1560,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["test.v.father"],
"loops": 12,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1565,6 +1575,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["test.v.mother"],
"loops": 12,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1583,6 +1594,7 @@ EXPLAIN
"table": {
"table_name": "<derived4>",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1598,6 +1610,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["a.father"],
"loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1612,6 +1625,7 @@ EXPLAIN
"key_length": "4",
"used_key_parts": ["id"],
"ref": ["a.mother"],
"loops": 2,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1853,6 +1867,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1871,6 +1886,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -1889,6 +1905,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2497,6 +2514,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 10,
......@@ -2533,6 +2551,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 10,
"rows": 2,
"r_rows": 1,
......@@ -3910,6 +3929,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -3930,6 +3950,7 @@ ANALYZE
"key_length": "23",
"used_key_parts": ["a2"],
"ref": ["test.t1.a1"],
"loops": 3,
"r_loops": 3,
"rows": 1,
"r_rows": 0.333333333,
......@@ -3986,6 +4007,7 @@ ANALYZE
"table_name": "tt2",
"access_type": "ALL",
"possible_keys": ["b1"],
"loops": 1,
"r_loops": 1,
"rows": 14,
"r_rows": 14,
......@@ -4006,6 +4028,7 @@ ANALYZE
"key_length": "23",
"used_key_parts": ["a2"],
"ref": ["test.tt2.b1"],
"loops": 14,
"r_loops": 14,
"rows": 1,
"r_rows": 0.071428571,
......@@ -4192,6 +4215,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -4219,6 +4243,7 @@ ANALYZE
"table": {
"table_name": "s",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -4244,6 +4269,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -4264,6 +4290,7 @@ ANALYZE
"key_length": "9",
"used_key_parts": ["a"],
"ref": ["test.t1.c"],
"loops": 4,
"r_loops": 4,
"rows": 2,
"r_rows": 0.5,
......@@ -4354,6 +4381,7 @@ ANALYZE
"table": {
"table_name": "tt",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......
......@@ -387,6 +387,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -402,6 +403,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["test.t2.f2"],
"loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -417,6 +419,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -496,6 +499,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -511,6 +515,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -527,6 +532,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -583,6 +589,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -599,6 +606,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -621,6 +629,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["tt.f1"],
"loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -636,6 +645,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -731,6 +741,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -747,6 +758,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -763,6 +775,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -792,6 +805,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["x.f1"],
"loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -807,6 +821,7 @@ EXPLAIN
"table": {
"table_name": "<derived5>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -823,6 +838,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -888,6 +904,7 @@ EXPLAIN
"table": {
"table_name": "<derived3>",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -904,6 +921,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -978,6 +996,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -993,6 +1012,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["f1"],
"ref": ["test.t2.f2"],
"loops": 11,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -1008,6 +1028,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -43,6 +43,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -61,6 +62,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -97,6 +99,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -122,6 +125,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -155,6 +159,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 1,
......@@ -182,6 +187,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -207,6 +213,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -301,6 +308,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -311,6 +319,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 2,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -333,6 +342,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -343,6 +353,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"rows": 2,
"cost": "REPLACED",
"filtered": 100
......@@ -383,6 +394,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -398,6 +410,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -429,6 +442,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -444,6 +458,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -484,6 +499,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 3,
......@@ -511,6 +527,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -526,6 +543,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -557,6 +575,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -572,6 +591,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......
......@@ -71,6 +71,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -89,6 +90,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -132,6 +134,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 4,
......@@ -159,6 +162,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -184,6 +188,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -222,6 +227,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 4,
......@@ -249,6 +255,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -274,6 +281,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -409,6 +417,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 9,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -427,6 +436,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -437,6 +447,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -459,6 +470,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -469,6 +481,7 @@ EXPLAIN
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -514,6 +527,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -529,6 +543,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -560,6 +575,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -575,6 +591,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -614,6 +631,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 9,
"r_rows": 7,
......@@ -641,6 +659,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -656,6 +675,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -687,6 +707,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -702,6 +723,7 @@ ANALYZE
"table": {
"table_name": "t4",
"access_type": "ALL",
"loops": 2,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......
This diff is collapsed.
......@@ -19,6 +19,7 @@ EXPLAIN
"table_name": "t1",
"partitions": ["p0"],
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -45,6 +46,7 @@ ANALYZE
"table_name": "t1",
"partitions": ["p0"],
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......
......@@ -22,6 +22,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -38,6 +39,7 @@ EXPLAIN
"table": {
"table_name": "tbl_alias1",
"access_type": "ALL",
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -56,6 +58,7 @@ EXPLAIN
"test.tbl_alias1.column_name_2",
"test.tbl_alias1.column_name_1"
],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -465,6 +465,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 8,
"r_rows": 8,
......
This diff is collapsed.
......@@ -265,7 +265,7 @@
drop table t0,t1,t2;
#
# MDEV-11196: Error:Run-Time Check Failure #2 - Stack around the variable 'key_buff'
@@ -770,11 +770,12 @@
@@ -770,12 +770,13 @@
{
"table": {
"table_name": "t1",
......@@ -278,10 +278,11 @@
+ "key_length": "3066",
+ "used_key_parts": ["f2"],
+ "ref": ["const"],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
@@ -809,8 +810,8 @@
@@ -809,9 +810,9 @@
"access_type": "range",
"possible_keys": ["k1"],
"key": "k1",
......@@ -289,6 +290,7 @@
- "used_key_parts": ["pk1", "f2", "pk2"],
+ "key_length": "3007",
+ "used_key_parts": ["pk1", "f2"],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -775,6 +775,7 @@ EXPLAIN
"key": "f2",
"key_length": "3070",
"used_key_parts": ["f2", "pk1"],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -811,6 +812,7 @@ EXPLAIN
"key": "k1",
"key_length": "3011",
"used_key_parts": ["pk1", "f2", "pk2"],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -57,6 +57,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -75,6 +76,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -93,6 +95,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -129,6 +132,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -154,6 +158,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -179,6 +184,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -212,6 +218,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 1,
......@@ -239,6 +246,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -264,6 +272,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -289,6 +298,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -372,6 +382,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -390,6 +401,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -400,6 +412,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -440,6 +453,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -465,6 +479,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -480,6 +495,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -519,6 +535,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 1,
......@@ -546,6 +563,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -571,6 +589,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......@@ -586,6 +605,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 3,
"r_loops": 1,
"rows": 3,
"r_rows": 3,
......
......@@ -69,6 +69,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -87,6 +88,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -105,6 +107,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -141,6 +144,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -166,6 +170,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -191,6 +196,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -224,6 +230,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 2,
......@@ -251,6 +258,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -276,6 +284,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -301,6 +310,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 4,
"r_rows": 4,
......@@ -403,6 +413,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -421,6 +432,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -431,6 +443,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 5,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -471,6 +484,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
......@@ -496,6 +510,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
......@@ -511,6 +526,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......@@ -550,6 +566,7 @@ ANALYZE
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 3,
......@@ -577,6 +594,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
......@@ -602,6 +620,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
......@@ -617,6 +636,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 5,
"r_loops": 1,
"rows": 7,
"r_rows": 7,
......
......@@ -6264,6 +6264,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["a"],
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -6280,6 +6281,7 @@ EXPLAIN
"key": "kp1",
"key_length": "10",
"used_key_parts": ["kp1", "kp2"],
"loops": 10,
"rows": 836,
"cost": "COST_REPLACED",
"filtered": 9.090909004,
......
......@@ -10703,6 +10703,7 @@ EXPLAIN
"key": "start_date",
"key_length": "8",
"used_key_parts": ["start_date", "end_date"],
"loops": 1,
"rows": 1000,
"cost": 1.235599899,
"filtered": 100,
......@@ -12382,6 +12383,7 @@ EXPLAIN
"table": {
"table_name": "three",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": 0.010504815,
"filtered": 100,
......@@ -12405,6 +12407,7 @@ EXPLAIN
"rows": 4312,
"selectivity_pct": 43.12
},
"loops": 3,
"rows": 1000,
"cost": 2.292585745,
"filtered": 43.11999893,
......@@ -12426,6 +12429,7 @@ EXPLAIN
"table": {
"table_name": "three",
"access_type": "ALL",
"loops": 1,
"rows": 3,
"cost": 0.010504815,
"filtered": 100
......@@ -12437,6 +12441,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["a", "b"],
"loops": 3,
"rows": 10000,
"cost": 1.701731924,
"filtered": 4.307688236,
......
......@@ -17,6 +17,7 @@ EXPLAIN
"key": "col1",
"key_length": "21",
"used_key_parts": ["col1"],
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -1587,6 +1587,7 @@ ANALYZE
"key_length": "10",
"used_key_parts": ["a", "c"],
"ref": ["const", "const"],
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 1,
......@@ -3475,6 +3476,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -3826,6 +3828,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 100,
"r_rows": 100,
......@@ -3994,6 +3997,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 5,
"r_rows": 5,
......@@ -4045,6 +4049,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
......@@ -4102,6 +4107,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 6,
"r_rows": 6,
......@@ -4173,6 +4179,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -4347,6 +4354,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 50,
"r_rows": 50,
......@@ -4382,6 +4390,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 50,
"rows": 50,
"r_rows": 50,
......@@ -4494,6 +4503,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["a"],
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -4520,6 +4530,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 97,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -4568,6 +4579,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -4595,6 +4607,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 97,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -112,6 +112,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
......@@ -279,6 +280,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
......@@ -442,6 +444,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
......@@ -500,6 +503,7 @@ ANALYZE
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10000,
"r_rows": 10000,
......
......@@ -2434,6 +2434,7 @@ EXPLAIN
"key": "idx",
"key_length": "10",
"used_key_parts": ["a", "b"],
"loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2500,6 +2501,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2532,6 +2534,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2586,6 +2589,7 @@ EXPLAIN
"rows": 12,
"selectivity_pct": 60
},
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 60,
......@@ -2602,6 +2606,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 1.8,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2675,6 +2680,7 @@ EXPLAIN
"rows": 15,
"selectivity_pct": 14.42307692
},
"loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 14.42307663,
......@@ -2691,6 +2697,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 1.153846154,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 73.17073059
......@@ -2789,6 +2796,7 @@ EXPLAIN
"rows": 7,
"selectivity_pct": 6.730769231
},
"loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 6.730769157,
......@@ -2805,6 +2813,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 0.471153846,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2848,6 +2857,7 @@ EXPLAIN
"key": "idx3",
"key_length": "10",
"used_key_parts": ["d", "e"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2864,6 +2874,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 5,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2906,6 +2917,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 15,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2921,6 +2933,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 15,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2969,6 +2982,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["idx"],
"loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2984,6 +2998,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 144,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3029,6 +3044,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3045,6 +3061,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3128,6 +3145,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3144,6 +3162,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -2437,6 +2437,7 @@ EXPLAIN
"key": "idx",
"key_length": "10",
"used_key_parts": ["a", "b"],
"loops": 1,
"rows": 6,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2504,6 +2505,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2537,6 +2539,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2584,6 +2587,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
"loops": 1,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 60,
......@@ -2601,6 +2605,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 1.8,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2666,6 +2671,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
"loops": 1,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 14.42307663,
......@@ -2683,6 +2689,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 1.153846154,
"rows": 8,
"cost": "COST_REPLACED",
"filtered": 73.17073059
......@@ -2773,6 +2780,7 @@ EXPLAIN
"key": "idx1",
"key_length": "5",
"used_key_parts": ["d"],
"loops": 1,
"rows": 7,
"cost": "COST_REPLACED",
"filtered": 6.730769157,
......@@ -2790,6 +2798,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 0.471153846,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2833,6 +2842,7 @@ EXPLAIN
"key": "idx3",
"key_length": "10",
"used_key_parts": ["d", "e"],
"loops": 1,
"rows": 5,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2850,6 +2860,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["a"],
"ref": ["test.t2.d"],
"loops": 5,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -2892,6 +2903,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 15,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2908,6 +2920,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 15,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2956,6 +2969,7 @@ EXPLAIN
"table_name": "t1",
"access_type": "ALL",
"possible_keys": ["idx"],
"loops": 1,
"rows": 144,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -2971,6 +2985,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 144,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3016,6 +3031,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3033,6 +3049,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3116,6 +3133,7 @@ EXPLAIN
"key": "idx",
"key_length": "5",
"used_key_parts": ["a"],
"loops": 1,
"rows": 12,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -3133,6 +3151,7 @@ EXPLAIN
"key_length": "5",
"used_key_parts": ["d"],
"ref": ["test.t1.a"],
"loops": 12,
"rows": 3,
"cost": "COST_REPLACED",
"filtered": 100,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -142,6 +142,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 101,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -165,6 +166,7 @@ EXPLAIN
"rows": 87,
"selectivity_pct": 87
},
"loops": 101,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 87,
......@@ -186,6 +188,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk2"],
"loops": 1,
"rows": 1,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -356,6 +359,7 @@ ANALYZE
"key": "idx1",
"key_length": "35",
"used_key_parts": ["nm"],
"loops": 1,
"r_loops": 1,
"rows": 1,
"r_rows": 1,
......@@ -411,6 +415,7 @@ ANALYZE
"key": "idx1",
"key_length": "35",
"used_key_parts": ["nm"],
"loops": 1,
"r_loops": 1,
"rows": 1,
"r_rows": 1,
......@@ -505,6 +510,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
"loops": 1,
"r_loops": 1,
"rows": 55,
"r_rows": 2,
......@@ -620,6 +626,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
"loops": 1,
"r_loops": 1,
"rows": 44,
"r_rows": 0,
......@@ -688,6 +695,7 @@ ANALYZE
"r_buffer_size": "REPLACED",
"r_filling_time_ms": "REPLACED"
},
"loops": 1,
"r_loops": 1,
"rows": 44,
"r_rows": 0,
......
......@@ -577,6 +577,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -595,6 +596,7 @@ EXPLAIN
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100,
......@@ -613,6 +615,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
......@@ -640,6 +643,7 @@ EXPLAIN
"table": {
"table_name": "<derived5>",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "REPLACED",
"filtered": 100,
......@@ -656,6 +660,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -674,6 +679,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -710,6 +716,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -728,6 +735,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
......@@ -746,6 +754,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -764,6 +773,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......@@ -774,6 +784,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 5,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
......@@ -796,6 +807,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100,
......@@ -807,6 +819,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 5,
"rows": 6,
"cost": "REPLACED",
"filtered": 100
......@@ -829,6 +842,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 5,
"cost": "REPLACED",
"filtered": 100
......
......@@ -422,6 +422,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......
This diff is collapsed.
This diff is collapsed.
......@@ -8344,6 +8344,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 18,
"cost": "COST_REPLACED",
"filtered": 5.555555344,
......
......@@ -2937,6 +2937,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -2963,6 +2964,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......@@ -2987,6 +2989,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 2,
"r_rows": 2,
......
......@@ -57,6 +57,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -83,6 +84,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
......@@ -118,6 +120,7 @@ ANALYZE
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"r_loops": 1,
"rows": 10,
"r_rows": 10,
......@@ -152,6 +155,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
......@@ -194,6 +198,7 @@ ANALYZE
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"r_loops": 4,
"rows": 4,
"r_rows": 4,
......@@ -224,6 +229,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -242,6 +248,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -267,6 +274,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 10,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -291,6 +299,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -325,6 +334,7 @@ EXPLAIN
"table": {
"table_name": "t2",
"access_type": "ALL",
"loops": 1,
"rows": 4,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -7444,6 +7444,7 @@ EXPLAIN
"table": {
"table_name": "t1",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100
......@@ -7475,6 +7476,7 @@ EXPLAIN
"table": {
"table_name": "t3",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": "COST_REPLACED",
"filtered": 100,
......
This diff is collapsed.
This diff is collapsed.
......@@ -54,6 +54,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......@@ -88,6 +89,7 @@ EXPLAIN
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["pk"],
"loops": 1,
"rows": 11,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -217,6 +217,7 @@ EXPLAIN
"table": {
"table_name": "tt",
"access_type": "ALL",
"loops": 1,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
......
......@@ -195,6 +195,7 @@ EXPLAIN
"table": {
"table_name": "tt",
"access_type": "ALL",
"loops": 1,
"rows": 40,
"cost": "COST_REPLACED",
"filtered": 100,
......
This diff is collapsed.
......@@ -1916,6 +1916,9 @@ void Explain_table_access::print_explain_json(Explain_query *query,
rowid_filter->print_explain_json(query, writer, is_analyze);
}
if (loops != 0.0)
writer->add_member("loops").add_double(loops);
/* r_loops (not present in tabular output) */
if (is_analyze)
{
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment