You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +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.
|
// Built-in functions may have this functionality added in the future.
|
||||||
// If b > e then the frame is entirely outside of the partition
|
// If b > e then the frame is entirely outside of the partition
|
||||||
// and there's no values to drop
|
// and there's no values to drop
|
||||||
if (!firstTime && b <= e)
|
if (b <= e)
|
||||||
|
{
|
||||||
|
if (!firstTime)
|
||||||
{
|
{
|
||||||
if (fFunctionType->dropValues(prevFrame.first, w.first))
|
if (fFunctionType->dropValues(prevFrame.first, w.first))
|
||||||
{
|
{
|
||||||
@ -209,8 +211,9 @@ void WindowFunction::operator()()
|
|||||||
fFunctionType->resetData();
|
fFunctionType->resetData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
|
|
||||||
firstTime = false;
|
firstTime = false;
|
||||||
|
}
|
||||||
|
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
|
||||||
prevFrame = w;
|
prevFrame = w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user