[FEAT MERGE] impl vectorization 2.0

Co-authored-by: oceanoverflow <oceanoverflow@gmail.com>
Co-authored-by: hezuojiao <hezuojiao@gmail.com>
Co-authored-by: Monk-Liu <1152761042@qq.com>
This commit is contained in:
obdev
2024-02-08 05:32:52 +00:00
committed by ob-robot
parent 64a276a23f
commit 0d0b11c0cc
592 changed files with 358124 additions and 303277 deletions

View File

@ -137,6 +137,16 @@ int ObCodeGenerator::detect_batch_size(
scan_cardinality));
// overwrite batch size if hint is specified
OZ(opt_params->get_integer_opt_param(ObOptParamHint::ROWSETS_MAX_ROWS, batch_size));
int tmp_ret = OB_SUCCESS;
tmp_ret = OB_E(EventTable::EN_ENABLE_RANDOM_BATCH_SIZE) OB_SUCCESS;
if (OB_SUCCESS != tmp_ret) {
static const int64_t min = 1;
static const int64_t max = rowsets_max_rows * 2;
batch_size = common::ObRandom::rand(min, max);
}
LOG_TRACE("detect_batch_size", K(vectorize), K(scan_cardinality), K(batch_size),
K(rowsets_max_rows), K(tmp_ret));
}
// TODO qubin.qb: remove the tracelog when rowsets/batch_size is displayed
// in plan