1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4466 regr_count() and distinct_count() now use long long for counters and for a type cast to/from boost::any

This commit is contained in:
Roman Nozdrin
2020-12-22 15:53:06 +00:00
parent 5815c5c526
commit 2c36eedb2b
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ static Add_regr_count_ToUDAFMap addToMap;
// Use the simple data model
struct regr_count_data
{
uint64_t cnt;
long long cnt;
};

View File

@ -22,7 +22,7 @@ using namespace mcsv1sdk;
struct distinct_count_data
{
uint64_t cnt;
long long cnt;
};
#define OUT_TYPE int64_t
@ -34,7 +34,7 @@ mcsv1_UDAF::ReturnCode distinct_count::init(mcsv1Context* context,
{
// The error message will be prepended with
// "The storage engine for the table doesn't support "
context->setErrorMessage("avgx() with other than 1 arguments");
context->setErrorMessage("distinct_count() with other than 1 arguments");
return mcsv1_UDAF::ERROR;
}
context->setResultType(execplan::CalpontSystemCatalog::BIGINT);