[MCOL-3747] Regression in 1.4 working_ssb_compareLogOnly/sub/order_limit_sub Created: 2020-01-28 Updated: 2020-03-26 Resolved: 2020-02-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr, MDB Plugin |
| Affects Version/s: | 1.4.1 |
| Fix Version/s: | 1.4.3 |
| Type: | Task | Priority: | Blocker |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Sprint: | 2020-2 | ||||||||||||||||||||||||||||||||
| Description |
|
working_ssb_compareLogOnly/sub/order_limit_sub, the second query gives the wrong answer: select * from ------------
------------
------------ In 1.2 we get the correct answer:
------------
------------ I ran the interior queries separately and got correct answers. It doesn't seem to break until the final wrapper. |
| Comments |
| Comment by David Hall (Inactive) [ 2020-01-29 ] | ||||||
|
This same bug most probably is responsible for failure in q.9.1.3.sql: | ||||||
| Comment by Gregory Dorman (Inactive) [ 2020-01-31 ] | ||||||
|
The story here is that in the presence of outermost wrapper, the "order by LIMIT 5" inside alias1 is simply ignored. The result is the same as if you remove it altogether. What seems to be related also is the "where lo_orderkey in" clause in alias2. Below is what works also, this time with the outer query as well as with inner only. Notice that JOIN is redundant and does not change anything, so I removed it for simplicity of the repro. Also, DESC inside alias1 is not contributing since it is placed on the second column (unique too), so I removed it as well. select * from | ||||||
| Comment by Gregory Dorman (Inactive) [ 2020-02-01 ] | ||||||
|
And then - my hunch is that it has something to do with: MariaDB [ssb]> select lo_orderkey, count If it doesn't support it, why it allows to proceed if you pile up enough select * from over it? | ||||||
| Comment by Roman [ 2020-02-04 ] | ||||||
|
B/c we don't run IN-INTO-EXISTS if IN is deeper then two levels down. | ||||||
| Comment by Roman [ 2020-02-04 ] | ||||||
|
4QA
The first query works as expected the second one returns onordered full set from cs1. | ||||||
| Comment by Roman [ 2020-02-04 ] | ||||||
|
Here is the explanation. | ||||||
| Comment by Daniel Lee (Inactive) [ 2020-02-10 ] | ||||||
|
Build verified: 1.4.3-1 Build verified: 1.4.3-1 source Build tested: 1.5.0-1 server The fixed is not in 1.5.0-1 | ||||||
| Comment by Daniel Lee (Inactive) [ 2020-02-11 ] | ||||||
|
Close ticket for 1.4.3-1 Fixed for 1.5 is being tracked on |