Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-641 Full DECIMAL support in ColumnStore
  3. MCOL-4463

Fix between for DECIMAL columns with certain literal values in projection.

    XMLWordPrintable

Details

    • Sub-Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 6.1.1
    • PrimProc
    • None
    • 2020-1, 2020-2, 2020-3, 2020-4, 2020-5, 2020-6, 2020-7, 2021-1, 2021-2, 2021-3, 2021-4, 2021-5, 2021-6, 2021-7, 2021-8, 2021-9

    Description

      With the code at cc6c51b5 the test fails:

      DROP TABLE cs1;
      CREATE TABLE cs1 (d1 DECIMAL(38))engine=columnstore;
      INSERT INTO cs1 VALUES (123456);
      SELECT "between_test", d1 BETWEEN 123455 AND 123457 f1 FROM cs1;
      

      This happens b/c of the error introduced by the recent decimal comparison refactoring.
      The patch also addresses the fact that ConstantColumn() creates fResult.decimalVal as a narrow decimal for literals 123455 and 123457 b/c MDB sends the literals as an INTs and not wide-DECIMALs.

      Attachments

        Activity

          People

            drrtuy Roman
            drrtuy Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.