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

Query Accelerator | large dataset retrieval bug

    XMLWordPrintable

Details

    • 2025-3

    Description

      To reproduce, use TPCH dataset from Here:
      https://mariadbcorp.atlassian.net/wiki/spaces/Support/pages/2985328651/TPC-H+100+w+Columnstore

      and run q21 cross engine join version as found here:
      https://mariadbcorp.atlassian.net/wiki/spaces/Support/whiteboard/2866216970

      Query:

      select
        s_name,
        count(*) as numwait
      from
        (
          select
            *
          from
            tpc_h.supplier,
            tpc_h.lineitem l1,
            tpc_h.orders,
            tpc_h.nation
          where
            s_suppkey = l1.l_suppkey
            and o_orderkey = l1.l_orderkey
            and s_nationkey = n_nationkey
            and 0 = 1
          UNION ALL
          select
            *
          from
            supplier,
            lineitem l1,
            orders,
            nation
          where
            s_suppkey = l1.l_suppkey
            and o_orderkey = l1.l_orderkey
            and o_orderstatus = 'F'
            and l1.l_receiptdate > l1.l_commitdate
            and exists(
              select
                *
              from
                lineitem l2
              where
                l2.l_orderkey = l1.l_orderkey
                and l2.l_suppkey <> l1.l_suppkey
            )
            and not exists (
              select
                *
              from
                lineitem l3
              where
                l3.l_orderkey = l1.l_orderkey
                and l3.l_suppkey <> l1.l_suppkey
                and l3.l_receiptdate > l3.l_commitdate
            )
            and s_nationkey = n_nationkey
            and n_name = 'SAUDI ARABIA'
        ) tmp
      group by
        s_name
      order by
        numwait desc,
        s_name
      limit
        100;
      

      Attachments

        1. dss.ddl
          4 kB
        2. qa21.sql
          1 kB

        Issue Links

          Activity

            People

              drrtuy Roman
              allen.herrera Allen Herrera
              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.