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

Negative TIME values are compared incorrectly

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      For example:

      CREATE TABLE timecmp (a TIME, b TIME) ENGINE=ColumnStore;
      INSERT INTO timecmp VALUES ('00:00:30', '00:00:31'), ('-00:00:30', '-00:00:29');
      SELECT a, b, IF(a < b, 'T', 'F') FROM timecmp;
      -- Result:
      -- +-----------+-----------+---------------------+
      -- | a         | b         | IF(a < b, 'T', 'F') |
      -- +-----------+-----------+---------------------+
      -- | 00:00:30  | 00:00:31  | T                   |
      -- | -00:00:30 | -00:00:29 | F                   |
      -- +-----------+-----------+---------------------+
      --
      -- Expected:
      -- +-----------+-----------+---------------------+
      -- | a         | b         | IF(a < b, 'T', 'F') |
      -- +-----------+-----------+---------------------+
      -- | 00:00:30  | 00:00:31  | T                   |
      -- | -00:00:30 | -00:00:29 | T                   |
      -- +-----------+-----------+---------------------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexey.antipovsky Aleksei Antipovskii
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.