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

Regression in subquery

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 1.5.3
    • 5.4.1
    • MDB Plugin
    • None
    • 2020-8

    Description

      The following query returns the wrong answer:

      MariaDB [ssb]> select count(*) as c8 from lineorder where lo_orderdate in  (select d_datekey from dateinfo where (d_yearmonthnum, d_daynuminmonth) in ((199204, 12), (199505,11)));
      +----+
      | c8 |
      +----+
      |  0 |
      +----+
      
      

      It should be:

      MariaDB [ssb]> select count(*) as c8 from lineorder where lo_orderdate in  (select d_datekey from dateinfo where (d_yearmonthnum, d_daynuminmonth) in ((199204, 12), (199505,11)));
      +------+
      | c8   |
      +------+
      | 4755 |
      +------+
      
      

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            David.Hall David Hall (Inactive)
            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.