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

@ -198,6 +198,7 @@ void PredicateOperator::setOpType(Type& l, Type& r)
{
if ( l.colDataType == execplan::CalpontSystemCatalog::DATETIME ||
l.colDataType == execplan::CalpontSystemCatalog::TIME ||
l.colDataType == execplan::CalpontSystemCatalog::TIMESTAMP ||
l.colDataType == execplan::CalpontSystemCatalog::DATE )
{
switch (r.colDataType)
@ -212,6 +213,11 @@ void PredicateOperator::setOpType(Type& l, Type& r)
fOperationType.colWidth = 8;
break;
case execplan::CalpontSystemCatalog::TIMESTAMP:
fOperationType.colDataType = execplan::CalpontSystemCatalog::TIMESTAMP;
fOperationType.colWidth = 8;
break;
case execplan::CalpontSystemCatalog::TIME:
fOperationType.colDataType = execplan::CalpontSystemCatalog::TIME;
fOperationType.colWidth = 8;
@ -229,6 +235,7 @@ void PredicateOperator::setOpType(Type& l, Type& r)
}
else if ( r.colDataType == execplan::CalpontSystemCatalog::DATETIME ||
r.colDataType == execplan::CalpontSystemCatalog::TIME ||
r.colDataType == execplan::CalpontSystemCatalog::TIMESTAMP ||
r.colDataType == execplan::CalpontSystemCatalog::DATE )
{
switch (l.colDataType)
@ -244,6 +251,11 @@ void PredicateOperator::setOpType(Type& l, Type& r)
fOperationType.colWidth = 8;
break;
case execplan::CalpontSystemCatalog::TIMESTAMP:
fOperationType.colDataType = execplan::CalpontSystemCatalog::TIMESTAMP;
fOperationType.colWidth = 8;
break;
case execplan::CalpontSystemCatalog::TIME:
fOperationType.colDataType = execplan::CalpontSystemCatalog::TIME;
fOperationType.colWidth = 8;