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

MCOL-641 This commit introduces templates for DataConvert and RowGroup methods.

This commit is contained in:
drrtuy
2020-01-21 12:57:31 +03:00
committed by Roman Nozdrin
parent 0c67b6ab50
commit 54c152d6c8
9 changed files with 111 additions and 37 deletions

View File

@ -36,6 +36,8 @@
#include "exceptclasses.h"
#include "dataconvert.h"
using uint128_t = unsigned __int128;
namespace messageqcpp
{
class ByteStream;
@ -61,7 +63,7 @@ typedef execplan::CalpontSystemCatalog::ColType Type;
*/
struct IDB_Decimal
{
IDB_Decimal(): value(0), scale(0), precision(0) {}
IDB_Decimal(): val(0), value(0), scale(0), precision(0) {}
IDB_Decimal(int64_t val, int8_t s, uint8_t p) :
value (val),
scale(s),
@ -149,9 +151,10 @@ struct IDB_Decimal
return (decimalComp(rhs) != 0);
}
uint128_t val;
int64_t value;
int8_t scale; // 0~18
uint8_t precision; // 1~18
int8_t scale; // 0~38
uint8_t precision; // 1~38
};
typedef IDB_Decimal CNX_Decimal;