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
$border = Date("1994-03-01");
$o = (
select
o_orderpriority,
o_orderkey
from
orders
where
o_orderdate >= $border
and o_orderdate < DateTime::MakeDate(DateTime::ShiftMonths($border, 3))
);
$l = (
select
distinct l_orderkey
from
lineitem
where
l_commitdate < l_receiptdate
);
select
o.o_orderpriority as o_orderpriority,
count(*) as order_count
from
$o as o
join
$l as l
on
o.o_orderkey = l.l_orderkey
group by
o.o_orderpriority
order by
o_orderpriority;
Notice SELECT DISTINCT above
Default run causes over-expected memory consumption in stage #1
Uh oh!
There was an error while loading. Please reload this page.
TPC-H Q4 scale 1000
Notice SELECT DISTINCT above
Default run causes over-expected memory consumption in stage #1
Here is AST for stage
Notice negative MemLimit -1073741824 (it causes SkipYields=true later on)
Let's force positive MemLimit
Now, memory consumption is significantly lower
The difference is in positive MemLimit in AST
The problem is observed for DISTINCT aggregation only
Other aggregations like GROUP BY work nicely (with low memory consumption)
The text was updated successfully, but these errors were encountered: