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

Function ValidateFunctionContext4

be/src/testutil/test-udas.cc:178–184  ·  view source on GitHub ↗

Defines AggDateIntermediate(DATE, INT) returns DATE intermediate DATE Useful to test that type parameters are plumbed through.

Source from the content-addressed store, hash-verified

176// intermediate DATE
177// Useful to test that type parameters are plumbed through.
178static void ValidateFunctionContext4(const FunctionContext* context) {
179 assert(context->GetNumArgs() == 2);
180 assert(context->GetArgType(0)->type == FunctionContext::TYPE_DATE);
181 assert(context->GetArgType(1)->type == FunctionContext::TYPE_INT);
182 assert(context->GetIntermediateType().type == FunctionContext::TYPE_DATE);
183 assert(context->GetReturnType().type == FunctionContext::TYPE_DATE);
184}
185
186IMPALA_UDF_EXPORT
187void AggDateIntermediateUpdate(FunctionContext* context, const DateVal&,

Callers 4

AggDateIntermediateInitFunction · 0.85
AggDateIntermediateMergeFunction · 0.85

Calls 2

GetNumArgsMethod · 0.80
GetArgTypeMethod · 0.80

Tested by

no test coverage detected