[MCOL-5092] group by (moda) on FLOAT result in Internal error: TupleAnnexStep::executeNoOrderBy() IDB-2035: An internal error occurred Created: 2022-05-16 Updated: 2022-10-26 Resolved: 2022-08-17 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 6.2.3 |
| Fix Version/s: | 22.08.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Massimo | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Sprint: | 2021-17 | ||||||||||||
| Assigned for Review: | |
||||||||||||
| Assigned for Testing: | |
||||||||||||
| Description |
|
In a simple query like: MariaDB [(none)]> sELECT 'AAA' MONDO, ri_mo_id OTHIS_RIMOID, MODA(ri_prezzo) OTHISPRMODA, COUNT(DISTINCT ri_id) OTHISNRI FROM dms_dg_ita_4570.rilevazione WHERE ri_data BETWEEN "2021-09-10" AND "2021-09-17" AND ri_in_id !=3 AND ri_prezzo IS NOT NULL GROUP BY MONDO, OTHIS_RIMOID; results in a error: Customer cant go ahead Issue appears to be related to the alias defined on a constant and then the alias is used for the GROUP BY, |
| Comments |
| Comment by Ricardo Galvan [ 2022-05-16 ] | |||||||||||||||||||||||||||||||||||||||||||
|
NOTE: if the first fixed field is removed, then it works:
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2022-07-01 ] | |||||||||||||||||||||||||||||||||||||||||||
|
I have proven that data is required for the error to occur. If the WHERE filter returns empty set, no error.
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2022-08-15 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Build tested: 22.08-1 (#5290) Reproduced the issue in 6.4.2-1
MTR columnstore/basic.mcs98_moda_function failed columnstore/basic.mcs98_moda_function [ fail ] A test case in the basic MTR suite failed. It looks like the MTR test case just need to be updated
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2022-08-17 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Build verified: 22.08-1 (#5304) The MTR issue is in the test case itself. The return result is correct, but in a different order. Reference result
rejected result
|