PR-471 - Support adding explain output for slow query in JSON report as well

- Put fix into the proper place
- Added test cases
This commit is contained in:
Sveta Smirnova
2023-11-06 17:21:28 +03:00
parent ab397667e6
commit 17820dbf23
7 changed files with 909 additions and 1 deletions

View File

@@ -8080,7 +8080,7 @@ override query_report => sub {
ts => $sample->{ts} ? parse_timestamp($sample->{ts}) : undef,
Query_time => $sample->{Query_time},
$explain ?
( explain => $explain ): (),
( explain => $explain ): (),
},
),
};