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-4171
This commit is contained in:
committed by
Roman Nozdrin
parent
5287e6860b
commit
638202417f
@ -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