[MDEV-30930] Make more date conditions sargable Created: 2023-03-27 Updated: 2023-11-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | 11.5 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Oleg Smirnov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In further development of
|
| Comments |
| Comment by Sergei Petrunia [ 2023-03-27 ] |
|
It is fairly straightforward to extend the approach for Handling MONTH(...) is harder. In order to handle it, we need to know if YEAR() is fixed (or has a limited number of matching values)... |
| Comment by Ahmad Faruk [ 2023-11-21 ] |
|
What will happen if the datetime column contains micro or miliseconds? |