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: Stalled (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 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

        Issue Links

          Activity

            People

              julien.fritsch Julien Fritsch
              aeae81 andreas eschbacher
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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