[MCOL-4570] Wrong results for query with filter condition on subquery with window function Created: 2021-03-02 Updated: 2022-06-02 Resolved: 2022-03-04 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr, PrimProc |
| Affects Version/s: | 5.5.1, 5.5.2 |
| Fix Version/s: | 6.3.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Sergey Zefirov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2021-17 |
| Description |
|
If we put some SELECT from the Columnstore table with a Window function in it into a subquery, filtering the results of that subquery based on column with Window function in the outer query does not work. Consider the following primitive test case (I've used https://hub.docker.com/r/mariadb/columnstore/ docker image to test):
The result above is obviously wrong, we asked for c1 > 0, but got negative value and NULL. This is NOT the case with InnoDB, for example:
|
| Comments |
| Comment by Sergey Zefirov [ 2022-03-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here are two scripts and an execution results.
The only difference between two scripts is in the engine used. The execution results are the same for 10.6 and current develop branch of columnstore and for 10.6 and develop-6 branch of columnstore. |