1
0
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:
Roman Nozdrin
2020-05-08 15:57:23 +00:00
parent e88cbe9bc1
commit 21a41738e1
4 changed files with 45 additions and 22 deletions

View File

@@ -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.