You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-5477 Disk join step improvement.
This patch: 1. Handles corner case when the bucket exceeded the memory limit, but we cannot redistribute the data in this bucket into new buckets based on a hash algorithm, because the rows have the same values. 2. Adds force option for disk join step. 3. Add a option to contol the depth of the partition tree.
This commit is contained in:
@ -85,6 +85,8 @@ CalpontSelectExecutionPlan::CalpontSelectExecutionPlan(const int location)
|
||||
, fDJSSmallSideLimit(0)
|
||||
, fDJSLargeSideLimit(0)
|
||||
, fDJSPartitionSize(100 * 1024 * 1024)
|
||||
, fDJSMaxPartitionTreeDepth(8)
|
||||
, fDJSForceRun(false)
|
||||
, // 100MB mem usage for disk based join,
|
||||
fUMMemLimit(numeric_limits<int64_t>::max())
|
||||
, fIsDML(false)
|
||||
@ -457,6 +459,8 @@ void CalpontSelectExecutionPlan::serialize(messageqcpp::ByteStream& b) const
|
||||
b << fDJSSmallSideLimit;
|
||||
b << fDJSLargeSideLimit;
|
||||
b << fDJSPartitionSize;
|
||||
b << fDJSMaxPartitionTreeDepth;
|
||||
b << (uint8_t)fDJSForceRun;
|
||||
b << fUMMemLimit;
|
||||
b << (uint8_t)fIsDML;
|
||||
messageqcpp::ByteStream::octbyte timeZone = fTimeZone;
|
||||
@ -652,6 +656,8 @@ void CalpontSelectExecutionPlan::unserialize(messageqcpp::ByteStream& b)
|
||||
b >> fDJSSmallSideLimit;
|
||||
b >> fDJSLargeSideLimit;
|
||||
b >> fDJSPartitionSize;
|
||||
b >> fDJSMaxPartitionTreeDepth;
|
||||
b >> (uint8_t&)fDJSForceRun;
|
||||
b >> fUMMemLimit;
|
||||
b >> tmp8;
|
||||
fIsDML = tmp8;
|
||||
|
Reference in New Issue
Block a user