Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
22.08.2, 5.6.3, 23.10
-
None
-
None
-
10.5.13
+ OS Red Hat Enterprise Linux release 8.5 (Ootpa)
+ Kernel 4.18.0-348.12.2.el8_5.x86_64
-
2023-12, 2024-1
Description
See the code attached.
Averaging over YEAR of a datetime-column that contains null-values gives 999.999 as average.
Only happens with Columnstore, InnoDB does everything correctly.
Occured on EBI03. No other server tested so far.
also affects MariaDB Version 10.6.9 CS Version 6.4.3
TODO: Interesting: does the error also occur on other functions, say, length of strings?
UPDATE: no, using length function on varchar fields does NOT show the error, attached the second SQL file for demonstration.
Attachments
Issue Links
- is blocked by
-
MDEV-33496 Out of range error in AVG(YEAR(datetime)) due to a wrong data type
- Closed