1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

feat(primproc,aggregegation)!: Changes for ROLLUP with single-phase aggregation (#3025)

The fix is simple: enable subtotals in single-phase aggregation and
disable parallel processing when there are subtotals and aggregation is
single-phase.
This commit is contained in:
Sergey Zefirov
2023-11-28 17:33:02 +03:00
committed by GitHub
parent 9a84aa8d99
commit 8632c85ecf
5 changed files with 29 additions and 4 deletions

View File

@ -42,7 +42,7 @@ int64_t encodeStringPrefix(const uint8_t* str, size_t len, datatypes::Charset& c
int64_t encodeStringPrefix_check_null(const uint8_t* str, size_t len, datatypes::Charset& cset)
{
if (len < 1 && str == nullptr)
if (len < 1)
{
return joblist::UBIGINTNULL;
}

View File

@ -425,6 +425,8 @@ class RowAggregation : public messageqcpp::Serializeable
void clearRollup() { fRollupFlag = false; }
bool hasRollup() const { return fRollupFlag; }
/** @brief Define content of data to be joined
*
* This method must be call after setInputOutput() for PM hashjoin case.