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

Regression: expression in HAVING clause not working right abs(avg())

    XMLWordPrintable

Details

    • 2021-4, 2021-5

    Description

      from test working_tpch1_compareLogOnly/having/having2.sql

      select cinteger, abs(avg(cinteger)) from DataTypeTestm group by cinteger having abs(avg(cinteger)) > 7483645 order by 1;

      should result in:

      cinteger abs(avg(cinteger))

      ----------------------------+

      -7483646 7483646.0000
      7483646 7483646.0000
      7483647 7483647.0000

      ----------------------------+
      But we get

      cinteger abs(avg(cinteger))

      ----------------------------+

      7483646 7483646.0000
      7483647 7483647.0000

      ----------------------------+

      Attachments

        Issue Links

          Activity

            People

              leonid.fedorov Leonid Fedorov
              David.Hall David Hall (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.