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

MCOL-265 Add support for TIMESTAMP data type

This commit is contained in:
Gagan Goel
2019-03-17 14:14:03 -04:00
parent 8a7ccd7d93
commit e89d1ac3cf
167 changed files with 4346 additions and 250 deletions

View File

@ -146,6 +146,16 @@ public:
return udafContext;
}
inline const std::string timeZone () const
{
return fTimeZone;
}
inline void timeZone (const std::string& timeZone)
{
fTimeZone = timeZone;
}
private:
/**
* Fields
@ -169,6 +179,8 @@ private:
// UDAnF support
mcsv1sdk::mcsv1Context udafContext;
std::string fTimeZone;
/***********************************************************
* F&E framework *
***********************************************************/
@ -176,7 +188,7 @@ public:
virtual const std::string& getStrVal(rowgroup::Row& row, bool& isNull)
{
evaluate(row, isNull);
return TreeNode::getStrVal();
return TreeNode::getStrVal(fTimeZone);
}
virtual int64_t getIntVal(rowgroup::Row& row, bool& isNull)
@ -224,6 +236,11 @@ public:
evaluate(row, isNull);
return TreeNode::getDatetimeIntVal();
}
virtual int64_t getTimestampIntVal(rowgroup::Row& row, bool& isNull)
{
evaluate(row, isNull);
return TreeNode::getTimestampIntVal();
}
virtual int64_t getTimeIntVal(rowgroup::Row& row, bool& isNull)
{
evaluate(row, isNull);