[Refactor]Merged string_value into string_ref (#15925)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user