[MDEV-31848] Lateral derived optimization causes incorrect results with <=> Created: 2023-08-04 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.3.1, 11.1.1, 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Väinö Mäkelä | Assignee: | Igor Babaev |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | split_materialized, wrong_result | ||
| Environment: |
Docker Hub's official MariaDB image |
||
| Description |
|
When lateral derived optimization is applied to a join using <=>, NULL values are not joined as expected. This issue seems to have been present since MariaDB 10.3.1 when the lateral derived optimization was introduced. How to reproduce:
Expected results (returned when running with split_materialized=off or after removing the WHERE):
Actual results: EXPLAIN output for the query with split_materialized enabled:
|
| Comments |
| Comment by Alice Sherepa [ 2023-08-04 ] | |||||||||||||||||||||||
|
Thank you for the report!
|