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

Regression in subquery

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 5.4.1
    • Component/s: Connector
    • Labels:
      None
    • Sprint:
      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

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            David.Hall David Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration