[MDEV-32203] Raise notes when an index cannot be used on data type mismatch Created: 2023-09-19 Updated: 2024-01-20 Resolved: 2023-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Optimizer |
| Fix Version/s: | 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2 |
| Type: | Task | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
| Comments |
| Comment by Michael Widenius [ 2023-10-09 ] | ||||||||||||||||||||||||
|
This feature is documented at: One can configure exactly when the notes will be given, including also if the notes should be written to the slow query log. | ||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-11-20 ] | ||||||||||||||||||||||||
|
Ok it works for equalities:
But not for IN:
is this intentional? | ||||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-11-21 ] | ||||||||||||||||||||||||
|
No, we only check = and <=> for now. | ||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2023-12-06 ] | ||||||||||||||||||||||||
|
Non-equality dyadic comparison predicates also do not raise warnings:
This should eventually be fixed. | ||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2023-12-11 ] | ||||||||||||||||||||||||
|
The problem with predicates <, <=, >=, >, IN, BEETWEEN was fixed under terms of |