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-3659 Use Long Double as result type for AVG_DISTINCT window function.
This commit is contained in:
@ -384,7 +384,8 @@ void WindowFunctionColumn::adjustResultType()
|
|||||||
fResultType = fFunctionParms[0]->resultType();
|
fResultType = fFunctionParms[0]->resultType();
|
||||||
|
|
||||||
if (boost::iequals(fFunctionName, "SUM") ||
|
if (boost::iequals(fFunctionName, "SUM") ||
|
||||||
boost::iequals(fFunctionName, "AVG"))
|
boost::iequals(fFunctionName, "AVG") ||
|
||||||
|
boost::iequals(fFunctionName, "AVG_DISTINCT"))
|
||||||
{
|
{
|
||||||
fResultType.colDataType = CalpontSystemCatalog::LONGDOUBLE;
|
fResultType.colDataType = CalpontSystemCatalog::LONGDOUBLE;
|
||||||
fResultType.colWidth = sizeof(long double);
|
fResultType.colWidth = sizeof(long double);
|
||||||
|
Reference in New Issue
Block a user