Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-5241

MariaDB Columnstore produces wrong averages on extracted null-datetime fields (like year)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 22.08.2, 5.6.3, 23.10
    • 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

        1. EBI-677_string_lengths.sql
          0.6 kB
          andreas eschbacher
        2. EBI-677.sql
          1 kB
          andreas eschbacher

        Issue Links

          Activity

            People

              sergey.zefirov Sergey Zefirov
              aeae81 andreas eschbacher
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.