[MCOL-5476] GROUP BY on duplicate expressions using functions throws error "IDB-2001: ... is not in GROUP BY clause." on Columnstore Created: 2023-04-14 Updated: 2023-12-21 Resolved: 2023-12-07 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 23.10 |
| Fix Version/s: | 23.10.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | andreas eschbacher | Assignee: | Denis Khalikov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | triage | ||
| Environment: |
MariaDB 10.5.18, Columnstore 5.6.8; RHEL 8.5 |
||
| Attachments: |
|
| Sprint: | 2023-11 |
| Assigned for Review: | |
| Assigned for Testing: | |
| Description |
|
The attached query throws the mentioned error when using Columnstore, but not when using InnoDB. While this is for sure an unconventional query, this is generated by a third-party BI software, where we cannot influence how generation of the SQL statements is done. |
| Comments |
| Comment by andreas eschbacher [ 2023-04-14 ] | ||||||||
|
I cloned https://jira.mariadb.org/browse/MCOL-5468, which is why the Assignee is set. I have no possibility to UNassign the ticket it seems. | ||||||||
| Comment by Allen Herrera [ 2023-06-12 ] | ||||||||
|
Group by the alias name, not the function The following works
| ||||||||
| Comment by Kirill Perov [ 2023-12-06 ] | ||||||||
|
fixed in latest develop (06.12.2023) testing finished ok |