[MCOL-5241] MariaDB Columnstore produces wrong averages on extracted null-datetime fields (like year) Created: 2022-09-29 Updated: 2024-02-07 |
|
| Status: | Confirmed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 22.08.2, 5.6.3, 23.10 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | andreas eschbacher | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.5.13 |
||
| Attachments: |
|
| 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. 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? |
| Comments |
| Comment by andreas eschbacher [ 2022-09-29 ] | |||||||||||
|
UPDATE: no, using length function on varchar fields does NOT show the error, attached the second SQL file for demonstration. | |||||||||||
| Comment by alexey vorovich (Inactive) [ 2022-09-29 ] | |||||||||||
|
drrtuy JFYI | |||||||||||
| Comment by Richard Stracke [ 2023-06-12 ] | |||||||||||
|
It is eailiy reproducable
|