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

IF() is incorrect when using hex constant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.1
    • Component/s: PrimProc
    • Labels:
      None
    • Sprint:
      2020-7

      Description

      Consider the following:

      select  IF(r_regionkey >= 0x40000000, r_regionkey+10, r_regionkey)   page from region cc order by 1 ;
      

      This returns r_regionkey+10, even though all r_regionkey are < 5.

      Replacing 0x40000000 with it's base 10 equivalent (1073741824) does not exhibit the bug.

      Debugging shows that the constant column is malformed when it reaches the IF function.

      This is a regression in 1.5. columnstore 1.4.4 returns the correct response, and debugging shows the constant column is correct.

        Attachments

          Activity

            People

            Assignee:
            drrtuy Roman
            Reporter:
            David.Hall David Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: