[FEAT MERGE] impl vectorization 2.0

Co-authored-by: Naynahs <cfzy002@126.com>
Co-authored-by: hwx65 <1780011298@qq.com>
Co-authored-by: oceanoverflow <oceanoverflow@gmail.com>
This commit is contained in:
obdev
2023-12-22 03:43:19 +00:00
committed by ob-robot
parent 1178245448
commit b6773084c6
592 changed files with 358124 additions and 303288 deletions

View File

@ -115,6 +115,9 @@ int ObExprSpace::eval_space(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr_da
expr_datum.set_null();
} else {
if (!ob_is_text_tc(expr.datum_meta_.type_)) {
// TODO:@huangweixiang.hwx(from @xiaofeng.lby)
// 1. If we do not need to consider the character set, changing repeat to memset may be better
// 2. Actually, we need to deal with the character set.
ret = ObExprRepeat::repeat(output, is_null, space, count->get_int(), expr_res_alloc, max_size);
} else { // text tc
ret = ObExprRepeat::repeat_text(expr.datum_meta_.type_, has_lob_header, output, is_null,