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

@ -72,7 +72,9 @@ ArithmeticOperator::ArithmeticOperator(const string& operatorName): Operator(ope
{
}
ArithmeticOperator::ArithmeticOperator(const ArithmeticOperator& rhs): Operator(rhs)
ArithmeticOperator::ArithmeticOperator(const ArithmeticOperator& rhs):
Operator(rhs),
fTimeZone(rhs.timeZone())
{
}
@ -100,21 +102,26 @@ ostream& operator<<(ostream& output, const ArithmeticOperator& rhs)
void ArithmeticOperator::serialize(messageqcpp::ByteStream& b) const
{
b << (ObjectReader::id_t) ObjectReader::ARITHMETICOPERATOR;
b << fTimeZone;
Operator::serialize(b);
}
void ArithmeticOperator::unserialize(messageqcpp::ByteStream& b)
{
ObjectReader::checkType(b, ObjectReader::ARITHMETICOPERATOR);
b >> fTimeZone;
Operator::unserialize(b);
}
bool ArithmeticOperator::operator==(const ArithmeticOperator& t) const
{
if (data() == t.data())
return true;
if (data() != t.data())
return false;
return false;
if (timeZone() != t.timeZone())
return false;
return true;
}
bool ArithmeticOperator::operator==(const TreeNode* t) const