[MCOL-2147] Semi-join with correllated subquery case .. when ... end in the join key. Created: 2019-02-08 Updated: 2023-10-25 Resolved: 2023-10-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 1.1.6, 1.2.2 |
| Fix Version/s: | 23.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Roman |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 2020-3, 2020-4, 2020-5, 2020-6, 2020-7 | ||||||||||||||||||||
| Description |
|
Error happened with set infinidb_vtable_mode 1 and 2. Prepare:
Error message is different with a condition before the case condition in the where clause.
|
| Comments |
| Comment by Richard Stracke [ 2019-02-11 ] | ||||||||||||||||||||||
|
Bug already exist in 1.1.6, So automatic mode decision is different between 1.1.6 and 1.2.2 | ||||||||||||||||||||||
| Comment by Roman [ 2019-02-11 ] | ||||||||||||||||||||||
|
GTK. I didn't look into this but GROUP BY handler could also cause this. | ||||||||||||||||||||||
| Comment by Roman [ 2020-05-11 ] | ||||||||||||||||||||||
|
MCS can't support natively a simplified version of this type:
This causes the failure of the original issue not the CASE function itself. When run with columnstore_select_handler=off it works though:
It also works with a simplified version of the original query:
The suggested solution is to check for this corner case: semi-join + correlated subquery with case in join key if case contains both top-level table column and a column(or a function) from the subquery. |