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
ORCA: Fix window function cost model producing zero local cost when no ORDER BY
When a window function has no ORDER BY clause (empty Order Spec),
ulSortCols is 0, causing the local cost of SequenceProject operators
to be zero. This makes CostHashSequenceProject and
CPhysicalSequenceProject have identical costs.
Fix by using max(ulSortCols, 1) so the window function evaluation
cost is never zero.
0 commit comments