[chore] Prolog of hermetic build with GCC 11 and Clang 13. (#7712)
Prepare to generate hermetic build using GCC 11 and Clang 13. The ideal toolchain would be ldb toolchain generated by [ldb_toolchain_gen.sh](https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.3/ldb_toolchain_gen.sh) To kick off a clang build, set `DORIS_TOOLCHAIN=clang` before running any build scripts.
This commit is contained in:
@ -40,7 +40,7 @@ Status ExplodeSplitTableFunction::open() {
|
||||
// check if the delimiter argument(the 2nd arg) is constant.
|
||||
// if yes, cache it
|
||||
if (fn_ctx->is_arg_constant(1)) {
|
||||
_is_delimiter_constant = true;
|
||||
_is_delimiter_constant = true;
|
||||
StringVal* delimiter = reinterpret_cast<StringVal*>(fn_ctx->get_constant_arg(1));
|
||||
_const_delimter = StringPiece((char*) delimiter->ptr, delimiter->len);
|
||||
}
|
||||
@ -65,7 +65,7 @@ Status ExplodeSplitTableFunction::process(TupleRow* tuple_row) {
|
||||
StringVal delimiter = _expr_context->root()->get_child(1)->get_string_val(_expr_context, tuple_row);
|
||||
_backup = strings::Split(StringPiece((char*) text.ptr, text.len), StringPiece((char*) delimiter.ptr, delimiter.len));
|
||||
}
|
||||
for (const std::string str : _backup) {
|
||||
for (const std::string & str : _backup) {
|
||||
_data.emplace_back(str);
|
||||
}
|
||||
_cur_size = _backup.size();
|
||||
|
||||
Reference in New Issue
Block a user