[Refactor]Merged string_value into string_ref (#15925)

This commit is contained in:
ZhaoChangle
2023-01-22 16:39:23 +08:00
committed by GitHub
parent b9872ceb98
commit 199d7d3be8
133 changed files with 1485 additions and 1607 deletions

View File

@ -21,10 +21,10 @@
#include "exec/text_converter.hpp"
#include "gen_cpp/PlanNodes_types.h"
#include "runtime/runtime_state.h"
#include "runtime/string_value.h"
#include "runtime/tuple_row.h"
#include "util/runtime_profile.h"
#include "util/types.h"
#include "vec/common/string_ref.h"
#include "vec/core/types.h"
namespace doris::vectorized {
@ -348,9 +348,9 @@ Status VSchemaScanNode::write_slot_to_vectorized_column(void* slot, SlotDescript
case TYPE_VARCHAR:
case TYPE_CHAR:
case TYPE_STRING: {
StringValue* str_slot = reinterpret_cast<StringValue*>(slot);
reinterpret_cast<vectorized::ColumnString*>(col_ptr)->insert_data(str_slot->ptr,
str_slot->len);
StringRef* str_slot = reinterpret_cast<StringRef*>(slot);
reinterpret_cast<vectorized::ColumnString*>(col_ptr)->insert_data(str_slot->data,
str_slot->size);
break;
}