You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-3839 Count as window function with constants fix
This commit is contained in:
@ -120,11 +120,12 @@ void WF_count<T>::operator()(int64_t b, int64_t e, int64_t c)
|
|||||||
if (cc)
|
if (cc)
|
||||||
{
|
{
|
||||||
bool isNull = false;
|
bool isNull = false;
|
||||||
int val = cc->getIntVal(fRow, isNull);
|
cc->getIntVal(fRow, isNull);
|
||||||
|
|
||||||
if (!isNull)
|
if (!isNull)
|
||||||
{
|
{
|
||||||
fCount = val;
|
// constant, set fCount to row count
|
||||||
|
fCount = e - b + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user