You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-15 03:21:42 +03:00
MCOL-1793 Window functions return garbage if current row outside of window frame.
This commit is contained in:
@ -188,7 +188,7 @@ void WindowFunction::operator()()
|
||||
}
|
||||
|
||||
// If b > e then the frame is entirely outside of the partition
|
||||
// and there's no values to add
|
||||
// and there's no values to drop
|
||||
if (b <= e)
|
||||
{
|
||||
// UDAnF functions may have a dropValue function implemented.
|
||||
@ -207,15 +207,15 @@ void WindowFunction::operator()()
|
||||
}
|
||||
else
|
||||
{
|
||||
// dropValues failed so do the entire frame.
|
||||
// dropValues failed or doesn't exist
|
||||
// so do the entire frame.
|
||||
fFunctionType->resetData();
|
||||
}
|
||||
}
|
||||
|
||||
fFunctionType->operator()(b, e, i); // Calls nextValue
|
||||
}
|
||||
prevFrame = w;
|
||||
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
|
||||
firstTime = false;
|
||||
prevFrame = w;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user