[MDEV-13723] Server crashes in ha_heap::find_unique_row or Assertion `0' failed in st_select_lex_unit::optimize with INTERSECT Created: 2017-09-03 Updated: 2020-08-25 Resolved: 2017-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
|
| Comments |
| Comment by Oleksandr Byelkin [ 2017-11-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here is other test suite which we got from respectable source:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-11-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It looks like the table was not emptied between rexecutions... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-11-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem was that now with EXCEPT & INTERSECT it is not rue anymore that is Item on subquery is not assigned value the temporary table is empty (it is possible that something was added then deleted) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-11-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
github tree: bb-10.3- revision-id: 78a31db6b322ec0e63601ed471feaedc0ad2987c (mariadb-10.3.2-40-g78a31db6b32)
With INTERSECT/EXCEPT fakt that subquery item of IN/ALL/ANY was not assigned value does not mean that temporary table used for calculating unit is empty (records could be deleted). — |