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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 6.1.1
    • Icebox
    • PrimProc
    • 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

              Unassigned Unassigned
              tntnatbry Gagan Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.