From dc1d6213f9a5ad4a53d35a886f52adf4ee0a2b5c Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 7 Mar 2023 19:49:57 +0300 Subject: MDEV-30806: ANALYZE FORMAT=JSON: better support for BNL and BNL-H joins In block-nl-join, add: - r_loops - this shows how many incoming record combinations this query plan node had. - r_effective_rows - this shows the average number of matching rows that this table had for each incoming record combination. This is comparable with r_rows in non-blocked access methods. For BNL-joins, it is always equal to $.table.r_rows * $.table.r_filtered For BNL-H joins the value cannot be computed from other values Reviewed by: Monty --- mysql-test/main/analyze_format_json.test | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'mysql-test/main/analyze_format_json.test') diff --git a/mysql-test/main/analyze_format_json.test b/mysql-test/main/analyze_format_json.test index 3f3324e9eec..84f44869afe 100644 --- a/mysql-test/main/analyze_format_json.test +++ b/mysql-test/main/analyze_format_json.test @@ -226,3 +226,45 @@ create table t2 as select * from t1; --source include/analyze-format.inc analyze format=json select a, (select t2.b from t2 where t2.a