[MCOL-3774] Order by incorrect with float -0.000 Created: 2020-02-10  Updated: 2023-10-25  Resolved: 2023-10-25

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: 1.4.2
Fix Version/s: Icebox

Type: Bug Priority: Minor
Reporter: David Hall (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None


 Description   

Consider the following:
select f, count from (select CCHAR9, round(regr_syy(CDECIMAL9_2, length(CCHAR9)), 8) f from datatypetestm1 group by 1) a group by f order by f desc;

in this case, f is 0.00000 on one row and -0.00000 on another. One would expect the -0.000000 to sort last, but that is not the case, at least sometimes.


Generated at Thu Feb 08 02:45:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.