1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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

@ -196,6 +196,7 @@ SimpleColumn::SimpleColumn (const SimpleColumn& rhs, const uint32_t sessionID):
fData (rhs.data()),
fIndexName (rhs.indexName()),
fViewName (rhs.viewName()),
fTimeZone (rhs.timeZone()),
fIsInfiniDB (rhs.isInfiniDB())
{
}
@ -229,6 +230,7 @@ SimpleColumn& SimpleColumn::operator=(const SimpleColumn& rhs)
fAsc = rhs.asc();
fIndexName = rhs.indexName();
fViewName = rhs.viewName();
fTimeZone = rhs.timeZone();
fData = rhs.data();
fSequence = rhs.sequence();
fDistinct = rhs.distinct();
@ -345,6 +347,7 @@ void SimpleColumn::serialize(messageqcpp::ByteStream& b) const
b << fColumnName;
b << fIndexName;
b << fViewName;
b << fTimeZone;
b << (uint32_t) fOid;
b << fData;
b << fTableAlias;
@ -361,6 +364,7 @@ void SimpleColumn::unserialize(messageqcpp::ByteStream& b)
b >> fColumnName;
b >> fIndexName;
b >> fViewName;
b >> fTimeZone;
b >> (uint32_t&) fOid;
b >> fData;
b >> fTableAlias;
@ -390,6 +394,9 @@ bool SimpleColumn::operator==(const SimpleColumn& t) const
if (fViewName != t.fViewName)
return false;
if (fTimeZone != t.fTimeZone)
return false;
if (fOid != t.fOid)
return false;
@ -497,6 +504,7 @@ void SimpleColumn::evaluate(Row& row, bool& isNull)
}
case CalpontSystemCatalog::DATETIME:
case CalpontSystemCatalog::TIMESTAMP:
case CalpontSystemCatalog::TIME:
{
fResult.intVal = row.getUintField<8>(fInputIndex);