You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +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:
@ -38,7 +38,7 @@ static Add_regr_count_ToUDAFMap addToMap;
|
|||||||
// Use the simple data model
|
// Use the simple data model
|
||||||
struct regr_count_data
|
struct regr_count_data
|
||||||
{
|
{
|
||||||
uint64_t cnt;
|
long long cnt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ using namespace mcsv1sdk;
|
|||||||
|
|
||||||
struct distinct_count_data
|
struct distinct_count_data
|
||||||
{
|
{
|
||||||
uint64_t cnt;
|
long long cnt;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define OUT_TYPE int64_t
|
#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 error message will be prepended with
|
||||||
// "The storage engine for the table doesn't support "
|
// "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;
|
return mcsv1_UDAF::ERROR;
|
||||||
}
|
}
|
||||||
context->setResultType(execplan::CalpontSystemCatalog::BIGINT);
|
context->setResultType(execplan::CalpontSystemCatalog::BIGINT);
|
||||||
|
Reference in New Issue
Block a user