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

Function ValidateFunctionContext

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

Source from the content-addressed store, hash-verified

79IMPALA_UDF_EXPORT
80void AggIntermediate(FunctionContext* context, const IntVal&, StringVal*) {}
81static void ValidateFunctionContext(const FunctionContext* context) {
82 assert(context->GetNumArgs() == 1);
83 assert(context->GetArgType(0)->type == FunctionContext::TYPE_INT);
84 assert(context->GetIntermediateType().type == FunctionContext::TYPE_STRING);
85 assert(context->GetReturnType().type == FunctionContext::TYPE_BIGINT);
86}
87IMPALA_UDF_EXPORT
88void AggIntermediateUpdate(FunctionContext* context, const IntVal&, StringVal*) {
89 ValidateFunctionContext(context);

Callers 4

AggIntermediateUpdateFunction · 0.85
AggIntermediateInitFunction · 0.85
AggIntermediateMergeFunction · 0.85
AggIntermediateFinalizeFunction · 0.85

Calls 2

GetNumArgsMethod · 0.80
GetArgTypeMethod · 0.80

Tested by

no test coverage detected