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-4171
This commit is contained in:
committed by
Roman Nozdrin
parent
5287e6860b
commit
638202417f
@ -278,11 +278,13 @@ const static_any::any& mcsv1_UDAF::shortTypeId((short)1);
|
||||
const static_any::any& mcsv1_UDAF::intTypeId((int)1);
|
||||
const static_any::any& mcsv1_UDAF::longTypeId((long)1);
|
||||
const static_any::any& mcsv1_UDAF::llTypeId((long long)1);
|
||||
const static_any::any& mcsv1_UDAF::int128TypeId((int128_t)1);
|
||||
const static_any::any& mcsv1_UDAF::ucharTypeId((unsigned char)1);
|
||||
const static_any::any& mcsv1_UDAF::ushortTypeId((unsigned short)1);
|
||||
const static_any::any& mcsv1_UDAF::uintTypeId((unsigned int)1);
|
||||
const static_any::any& mcsv1_UDAF::ulongTypeId((unsigned long)1);
|
||||
const static_any::any& mcsv1_UDAF::ullTypeId((unsigned long long)1);
|
||||
const static_any::any& mcsv1_UDAF::uint128TypeId((uint128_t)1);
|
||||
const static_any::any& mcsv1_UDAF::floatTypeId((float)1);
|
||||
const static_any::any& mcsv1_UDAF::doubleTypeId((double)1);
|
||||
const static_any::any& mcsv1_UDAF::strTypeId(typeStr);
|
||||
|
@ -638,11 +638,13 @@ protected:
|
||||
static const static_any::any& intTypeId;
|
||||
static const static_any::any& longTypeId;
|
||||
static const static_any::any& llTypeId;
|
||||
static const static_any::any& int128TypeId;
|
||||
static const static_any::any& ucharTypeId;
|
||||
static const static_any::any& ushortTypeId;
|
||||
static const static_any::any& uintTypeId;
|
||||
static const static_any::any& ulongTypeId;
|
||||
static const static_any::any& ullTypeId;
|
||||
static const static_any::any& uint128TypeId;
|
||||
static const static_any::any& floatTypeId;
|
||||
static const static_any::any& doubleTypeId;
|
||||
static const static_any::any& strTypeId;
|
||||
@ -1069,6 +1071,14 @@ inline T mcsv1_UDAF::convertAnyTo(static_any::any& valIn)
|
||||
{
|
||||
val = valIn.cast<double>();
|
||||
}
|
||||
else if (valIn.compatible(int128TypeId))
|
||||
{
|
||||
val = valIn.cast<int128_t>();
|
||||
}
|
||||
else if (valIn.compatible(uint128TypeId))
|
||||
{
|
||||
val = valIn.cast<uint128_t>();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw std::runtime_error("mcsv1_UDAF::convertAnyTo(): input param has unrecognized type");
|
||||
|
Reference in New Issue
Block a user