[MDEV-30142] rowid_filter: negative access cost factor values Created: 2022-12-01 Updated: 2022-12-13 Resolved: 2022-12-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | rowid_filtering | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The issue appears after this commit (further "The Commit"):
Consider this patch:
If I apply that and run
grep produces no output for the tree before The Commit. After The Commit, grep produces a lot of output:
|
| Comments |
| Comment by Sergei Petrunia [ 2022-12-01 ] | ||||||||||||||
|
Suggested fix (Monty has other suggestions):
The idea is: | ||||||||||||||
| Comment by Sergei Petrunia [ 2022-12-09 ] | ||||||||||||||
|
Input from igor:
| ||||||||||||||
| Comment by Sergei Petrunia [ 2022-12-09 ] | ||||||||||||||
|
But the comments in the code say otherwise:
| ||||||||||||||
| Comment by Sergei Petrunia [ 2022-12-09 ] | ||||||||||||||
|
If I take the tree with the tip cset
and add code to Range_rowid_filter_cost_info::avg_adjusted_gain_per_row that print access_cost_factor when it is negative, I get plenty of printouts when running mtr --suite=main. | ||||||||||||||
| Comment by Sergei Petrunia [ 2022-12-13 ] | ||||||||||||||
|
Addressed in |