You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-641 1. Add support for int128_t in ParsedColumnFilter.
2. Set Decimal precision in SimpleColumn::evaluate(). 3. Add support for int128_t in ConstantColumn. 4. Set IDB_Decimal::s128Value in buildDecimalColumn(). 5. Use width 16 as first if predicate for branching based on decimal width.
This commit is contained in:
committed by
Roman Nozdrin
parent
0bd172cd6e
commit
74b64eb4f1
@ -67,6 +67,7 @@ struct IDB_Decimal
|
||||
{
|
||||
s128Value = 0;
|
||||
}
|
||||
|
||||
IDB_Decimal(int64_t val, int8_t s, uint8_t p) :
|
||||
value (val),
|
||||
scale(s),
|
||||
@ -131,6 +132,7 @@ struct IDB_Decimal
|
||||
return (decimalComp(rhs) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool operator>(const IDB_Decimal& rhs) const
|
||||
{
|
||||
if (utils::widthByPrecision(precision) == 16)
|
||||
@ -148,6 +150,7 @@ struct IDB_Decimal
|
||||
return (decimalComp(rhs) > 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool operator<(const IDB_Decimal& rhs) const
|
||||
{
|
||||
if (utils::widthByPrecision(precision) == 16)
|
||||
@ -165,6 +168,7 @@ struct IDB_Decimal
|
||||
return (decimalComp(rhs) < 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool operator>=(const IDB_Decimal& rhs) const
|
||||
{
|
||||
if (utils::widthByPrecision(precision) == 16)
|
||||
@ -182,6 +186,7 @@ struct IDB_Decimal
|
||||
return (decimalComp(rhs) >= 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool operator<=(const IDB_Decimal& rhs) const
|
||||
{
|
||||
if (utils::widthByPrecision(precision) == 16)
|
||||
@ -199,6 +204,7 @@ struct IDB_Decimal
|
||||
return (decimalComp(rhs) <= 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool operator!=(const IDB_Decimal& rhs) const
|
||||
{
|
||||
if (utils::widthByPrecision(precision) == 16)
|
||||
|
Reference in New Issue
Block a user