You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-1793 Handle transition of Window Frame from outside of Partition to inside
This commit is contained in:
@ -194,7 +194,9 @@ void WindowFunction::operator()()
|
||||
// Built-in functions may have this functionality added in the future.
|
||||
// If b > e then the frame is entirely outside of the partition
|
||||
// and there's no values to drop
|
||||
if (!firstTime && b <= e)
|
||||
if (b <= e)
|
||||
{
|
||||
if (!firstTime)
|
||||
{
|
||||
if (fFunctionType->dropValues(prevFrame.first, w.first))
|
||||
{
|
||||
@ -209,8 +211,9 @@ void WindowFunction::operator()()
|
||||
fFunctionType->resetData();
|
||||
}
|
||||
}
|
||||
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
|
||||
firstTime = false;
|
||||
}
|
||||
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
|
||||
prevFrame = w;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user