[MCOL-2165] Autoswitch broken in some cases in 1.2.2 Created: 2019-02-12 Updated: 2020-08-25 Resolved: 2019-03-12 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.2.2 |
| Fix Version/s: | 1.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 2019-02, 2019-03 | ||||||||||||||||||||
| Description |
|
Testcase from
runs with MCS 1.1.6, because it autoswitch to vtable-mode 0 . Result of the calGetTrace() is
The same output like with vtable = 0 and the join was not executed by the columnstore engine. With vtable = 1 an error occured, so it is likely, that columnstore engine throw an error and autoswitch to vtable= 0 With 1.2.2 the autoswitch was not happened, the error occured like in vtable=1 and no autoswitch was happened. |
| Comments |
| Comment by Richard Stracke [ 2019-02-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simple Example: (With MCS 1.1.6)
Result:
The join was not executed in Columnstore. Same with table_mode 1:
Result:
The join was executed in Columnstore . Same with table_mode 2:
Query and join was executed in columnstore as expected. Now with exists clause:
Result:
As expected, the join was not executed from columnstore (mysqld instead) With table mode 1:
Result:
the same error as in 1.2.2, so the bug already exists in 1.1.6 Now Table mode 2:
The join is not executed in columnstore, the same execution order as with vtable = 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roman [ 2019-03-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please review the fix that allows CS to process the query in both disabled_vtable and autoswitch modes. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2019-03-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified 1.2.3-1 server commit: vtable mode 1 returns the following error as expected. ERROR 1815 (HY000): Internal error: IDB-3034: Query is not supported. Unknown column ‘’ in subquery. |