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

TPC-H query 19: - semi joins / 'lineitem' and 'part' are not joined.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • None
    • 23.02.1
    • None
    • None

    Description

      Query 19: IDB-1000: 'lineitem' and 'part' are not joined.

      select
      	sum(l_extendedprice* (1 - l_discount)) as revenue
      from
      	lineitem,
      	part
      where
      	(
      		p_partkey = l_partkey
      		and p_brand = 'Brand#23'
      		and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG')
      		and l_quantity >= 2 and l_quantity <= 2 + 10
      		and p_size between 1 and 5
      		and l_shipmode in ('AIR', 'AIR REG')
      		and l_shipinstruct = 'DELIVER IN PERSON'
      	)
      	or
      	(
      		p_partkey = l_partkey
      		and p_brand = 'Brand#24'
      		and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK')
      		and l_quantity >= 20 and l_quantity <= 20 + 10
      		and p_size between 1 and 10
      		and l_shipmode in ('AIR', 'AIR REG')
      		and l_shipinstruct = 'DELIVER IN PERSON'
      	)
      	or
      	(
      		p_partkey = l_partkey
      		and p_brand = 'Brand#44'
      		and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG')
      		and l_quantity >= 26 and l_quantity <= 26 + 10
      		and p_size between 1 and 15
      		and l_shipmode in ('AIR', 'AIR REG')
      		and l_shipinstruct = 'DELIVER IN PERSON'
      	);
      

      Attachments

        Issue Links

          Activity

            People

              leonid.fedorov Leonid Fedorov
              toddstoffel Todd Stoffel (Inactive)
              Daniel Lee Daniel Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 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.