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

SUM return NULL value due to NULLIF Function

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Done
    • 23.10.1
    • 25.10.1
    • ?
    • None
    • OS = Ubuntu Server 22.04

    Description

      To Reproduce

      create table test ( a double, b double ) engine=columnstore;
      insert into test values (100,100);
      select sum(a)/NULLIF(sum(b),0) from test;
      

      resulting NULL

      Expected behavior
      Query should return 1

      Attachments

        Activity

          People

            kristina Kristina Pavlova
            bambang Bambang Sumitra
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.