You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-09-02 12:41:17 +03:00
MCOL-641 Simple aggregates works with GROUP BY column keys.
Fixed constant colump copy for binary columns in TNS.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
using int128_t = __int128;
|
||||
using ColTypeAlias = execplan::CalpontSystemCatalog::ColType;
|
||||
using ColDataTypeAlias = execplan::CalpontSystemCatalog::ColDataType;
|
||||
|
||||
namespace execplan
|
||||
{
|
||||
@@ -166,7 +167,7 @@ class Decimal
|
||||
|
||||
/**
|
||||
@brief The method detects whether decimal type is wide
|
||||
using csc data type.
|
||||
using csc colType.
|
||||
*/
|
||||
static constexpr inline bool isWideDecimalType(const ColTypeAlias& ct)
|
||||
{
|
||||
@@ -185,6 +186,18 @@ class Decimal
|
||||
&& precision <= INT128MAXPRECISION;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief The method detects whether decimal type is wide
|
||||
using datatype and width.
|
||||
*/
|
||||
static constexpr inline bool isWideDecimalType(const ColDataTypeAlias dt,
|
||||
const int32_t width)
|
||||
{
|
||||
return (width == MAXDECIMALWIDTH &&
|
||||
(dt == execplan::CalpontSystemCatalog::DECIMAL ||
|
||||
dt == execplan::CalpontSystemCatalog::UDECIMAL));
|
||||
}
|
||||
|
||||
/**
|
||||
@brief The method sets the legacy scale and precision of a wide decimal
|
||||
column which is the result of an arithmetic operation.
|
||||
|
Reference in New Issue
Block a user