MCPcopy Create free account
hub / github.com/apache/impala / ValidateMem

Function ValidateMem

be/src/udf/udf-test.cc:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130IntVal ValidateMem(FunctionContext* context) {
131 uint8_t* buffer = context->Allocate(0);
132 EXPECT_TRUE(buffer != NULL);
133 buffer = context->Reallocate(buffer, 10);
134 EXPECT_TRUE(buffer != NULL);
135 memset(buffer, 0, 10);
136 context->Free(buffer);
137 return IntVal::null();
138}
139
140StringVal TimeToString(FunctionContext* context, const TimestampVal& time) {
141 ptime t(*const_cast<date*>(reinterpret_cast<const date*>(&time.date)));

Callers

nothing calls this directly

Calls 3

AllocateMethod · 0.45
ReallocateMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected