1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +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

@@ -709,6 +709,10 @@ void Row::initToNull()
*((uint64_t*) &data[offsets[i]]) = joblist::DATETIMENULL;
break;
case CalpontSystemCatalog::TIMESTAMP:
*((uint64_t*) &data[offsets[i]]) = joblist::TIMESTAMPNULL;
break;
case CalpontSystemCatalog::TIME:
*((uint64_t*) &data[offsets[i]]) = joblist::TIMENULL;
break;
@@ -848,6 +852,9 @@ bool Row::isNullValue(uint32_t colIndex) const
case CalpontSystemCatalog::DATETIME:
return (*((uint64_t*) &data[offsets[colIndex]]) == joblist::DATETIMENULL);
case CalpontSystemCatalog::TIMESTAMP:
return (*((uint64_t*) &data[offsets[colIndex]]) == joblist::TIMESTAMPNULL);
case CalpontSystemCatalog::TIME:
return (*((uint64_t*) &data[offsets[colIndex]]) == joblist::TIMENULL);