You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user