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

COS() returns different last digit precision value for DECIMAL(38) column.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.1.1
    • Fix Version/s: Icebox
    • Component/s: PrimProc
    • Labels:
      None

      Description

      COS() function is returning different last digit precision value for Centos7 vs Centos8 for a DECIMAL(38) column:

      On Centos8:

      drop table if exists cs1;
      create table cs1 (a decimal(38), b decimal(38) unsigned)engine=columnstore;
      insert into cs1 values (-123456, 123456);
      select cos(a), cos(b) from cs1;
      +---------------------+---------------------+
      | cos(a)              | cos(b)              |
      +---------------------+---------------------+
      | -0.6722948816565846 | -0.6722948816565846 |
      +---------------------+---------------------+
      

      On Centos7:

      select cos(a), cos(b) from cs1;
      +---------------------+---------------------+
      | cos(a)              | cos(b)              |
      +---------------------+---------------------+
      | -0.6722948816565845 | -0.6722948816565845 |
      +---------------------+---------------------+
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tntnatbry Gagan Goel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration