[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

@ -19,16 +19,16 @@
// and modified by Doris
#include "runtime/datetime_value.h"
#include "runtime/string_value.h"
#include "vec/common/string_ref.h"
#include "vec/runtime/vdatetime_value.h"
namespace doris {
// This class is unused. It contains static (compile time) asserts.
// This is useful to validate struct sizes and other similar things
// at compile time. If these asserts fail, the compile will fail.
// at compile time. If these assertions fail, the compiling will fail.
class UnusedClass {
private:
static_assert(sizeof(StringValue) == 16);
static_assert(offsetof(StringValue, len) == 8);
static_assert(sizeof(StringRef) == 16);
static_assert(offsetof(StringRef, size) == 8);
// Datetime value
static_assert(sizeof(DateTimeValue) == 16);
static_assert(sizeof(doris::vectorized::VecDateTimeValue) == 8);