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

Garbage result of a union between huge narrow DECIMAL and BIGINT

    XMLWordPrintable

Details

    • 2021-7

    Description

      This ticket is for 5.6.1 only. Testing in 6.1.1 will need to wait until MCOL-4612 is MERGED into develop branch

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a DECIMAL(17,1), b BIGINT) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES (9999999999999999.9, 999999999999999999);
      SELECT * FROM (SELECT a FROM t1 UNION SELECT b FROM t1) tu;
      

      +-----------------------+
      | a                     |
      +-----------------------+
      |    9999999999999999.9 |
      | -844674407370955162.6 |
      +-----------------------+
      

      Looks wrong.

      Note, the problem cannot be repeated in 6.x because of MCOL-4612
      But perhaps it still exists. MCOL-4612 needs to be fixed first to verify it further in 6.x.

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              bar Alexander Barkov
              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.