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 (Inactive)
            bambang Bambang Sumitra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5d
                5d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 2d 3h Time Not Required
                2d 3h

                Git Integration

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