[MDEV-26168] Broken Sort operation with Union and Count Created: 2021-07-16 Updated: 2021-07-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.5.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Jared Karlow | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Columnstore | ||
| Environment: |
Ubuntu 20.04.2 LTS focal |
||
| Description |
|
Simple unions break sorting. Here's a relatively simple query format that demonstrates this on a columnstore table: SELECT ) AS A ORDER BY count This will yield a sort order where -1 is considered the largest value. This is likely a signed/unsigned integer issue. Of note:
Active Workaround: |