[MDEV-22095] Getting wrong result in calculation using variables from derived table Created: 2020-03-31 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Variables |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Griehl | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
eg. 10.2.22-MariaDB-log openSUSE package on SUSE Linux Enterprise Server 15 (x86_64) patchlevel 1 |
||
| Description |
|
Doing some calculations to get weighted percentiles I ran into following issue. Doing the same on mysql 5.5.62 returns 6.10. Here some outputs from MariaDB from some workarounds: btw. If you do not use a variable mariadb returns the expected result: |
| Comments |
| Comment by Alice Sherepa [ 2020-03-31 ] | |||||||||||||||||||||
|
Thanks for the report! There is some inconsistency. Repeatable on 5.5-10.4, also on Mysql 5.6-8.0
|