Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-18478 ANALYZE for statement should show selectivity of pushed index condition #2899

Open
wants to merge 2 commits into
base: 11.4
Choose a base branch
from

Conversation

jasoncu-MariaDB
Copy link

  • The Jira issue number for this PR is: MDEV-18478

Description

Add runtime counters to ANALYZE FORMAT=JSON for the number of rows (r_rows_idx) and the number of rows that survive the pushed index condition (r_icp_filtered) under a new JSON object (r_index_condition).

How can this PR be tested?

Added new test, and verified and modified results files of existing tests that use ANALYZE FORMAT=JSON.

If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.

Basing the PR against the correct MariaDB version

  • This is a new feature and the PR is based against the latest MariaDB development branch.
  • This is a bug fix and the PR is based against the earliest maintained branch in which the bug can be reproduced.

PR quality check

  • I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

…dex condition

Add runtime counters to ANALYZE FORMAT=JSON for the number of rows (r_rows_idx)
and the number of rows that survive the pushed index condition (r_icp_filtered)
under a new JSON object (r_index_condition).

Changed r_lookups under rowid_filter to be an average number of lookups
per r_loops, to make r_lookups and r_rows_idx consistent with r_rows.

Added new test, and verified and modified results files of existing tests
that use ANALYZE FORMAT=JSON.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants