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

aggregation over boolean expression fails with error 1178

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.7
    • None
    • None
    • 2016-24, 2016-25, 2017-01

    Description

      Pierre-Adrien Coustillas reported on google group:
      https://groups.google.com/forum/#!topic/mariadb-columnstore/d-R4wWTXvP8

      MariaDB [mcs]> SELECT sum((valeur=1) * (1=1) ) FROM histo__agregats LIMIT 2;
      ERROR 1178 (42000): The storage engine for the table doesn't support Un-recognized Arithmetic Operand

      A workaround is:
      MariaDB [mcs]> SELECT sum(if(valeur=1,1,0) * (1=1) ) FROM histo__agregats LIMIT 2;
      --------------------------------

      sum(if(valeur=1,1,0) * (1=1) )

      --------------------------------

      4509127

      --------------------------------
      1 row in set (0.48 sec)

      Can reproduce the behavior.

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            dthompson David Thompson (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.