You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
one of the TPC-DS complex query seems to have semi-join pushdown issues that didn't apply optimization from #11937
see:
WITH sr_tmp AS
(
SELECT sr_item_sk,
sr_ticket_number,
sr_return_quantity
FROM store_returns
WHERE sr_reason_sk IN
(
SELECT r_reason_sk
FROM reason
WHERE r_reason_desc = 'reason 50')
),
sr_tmp2 AS
(
SELECT sr_ticket_number
FROM store_returns
WHERE sr_reason_sk IN
(
SELECT r_reason_sk
FROM reason
WHERE r_reason_desc = 'reason 50')
),
ss_tmp AS (
SELECT ss_customer_sk, ss_item_sk, ss_ticket_number, ss_quantity, ss_sales_price
FROM store_sales
WHERE ss_ticket_number IN (SELECT sr_ticket_number FROM sr_tmp2)
)
SELECT
/*+ aggOptions(num_groups_limit='1000000000') */
ss_customer_sk,
Sum(
CASE
WHEN sr_return_quantity IS NOT NULL THEN ( ss_quantity - sr_return_quantity ) * ss_sales_price
ELSE ( ss_quantity * ss_sales_price )
END) act_sales
FROM ss_tmp
LEFT OUTER JOIN sr_tmp
ON (
sr_item_sk = ss_item_sk
AND sr_ticket_number = ss_ticket_number)
GROUP BY ss_customer_sk
limit 100;
one of the TPC-DS complex query seems to have semi-join pushdown issues that didn't apply optimization from #11937
see:
the issue was at the inner most join:
The text was updated successfully, but these errors were encountered: