Commit 25e5ce19 authored by Sergei Petrunia's avatar Sergei Petrunia

NOT FIXED: MDEV-10773: ANALYZE FORMAT=JSON query_with_CTE crashes

Remove the testcase. It turns out, the crash still happens, just not
on all platforms.
parent 9ea0b44c
...@@ -2343,68 +2343,3 @@ select id + 1, uuid() from data_generator where id < 150000 ...@@ -2343,68 +2343,3 @@ select id + 1, uuid() from data_generator where id < 150000
select * from data_generator select * from data_generator
) as a; ) as a;
drop table t1; drop table t1;
#
# MDEV-10773: ANALYZE FORMAT=JSON query_with_CTE crashes
#
analyze format=json
with recursive src(counter) as
(select 1
union
select counter+1 from src where counter<10
) select * from src;
ANALYZE
{
"query_block": {
"select_id": 1,
"r_loops": 1,
"r_total_time_ms": "REPLACED",
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"r_loops": 1,
"rows": 2,
"r_rows": 10,
"r_total_time_ms": "REPLACED"e-4,
"filtered": 100,
"r_filtered": 100,
"materialized": {
"query_block": {
"recursive_union": {
"table_name": "<union2,3>",
"access_type": "ALL",
"r_loops": 0,
"r_rows": null,
"query_specifications": [
{
"query_block": {
"select_id": 2,
"table": {
"message": "No tables used"
}
}
},
{
"query_block": {
"select_id": 3,
"r_loops": 10,
"r_total_time_ms": "REPLACED",
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"r_loops": 10,
"rows": 2,
"r_rows": 1,
"r_total_time_ms": "REPLACED",
"filtered": 100,
"r_filtered": 90,
"attached_condition": "src.counter < 10"
}
}
}
]
}
}
}
}
}
}
...@@ -1505,15 +1505,3 @@ select id, test_data ...@@ -1505,15 +1505,3 @@ select id, test_data
) as a; ) as a;
drop table t1; drop table t1;
--echo #
--echo # MDEV-10773: ANALYZE FORMAT=JSON query_with_CTE crashes
--echo #
--replace_regex /"r_total_time_ms": [0-9]*[.]?[0-9]*/"r_total_time_ms": "REPLACED"/
analyze format=json
with recursive src(counter) as
(select 1
union
select counter+1 from src where counter<10
) select * from src;
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