MCPcopy Create free account
hub / github.com/apache/impala / BooleanVal ValidateArgType

Function BooleanVal ValidateArgType

be/src/testutil/test-udfs.cc:293–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293IMPALA_UDF_EXPORT
294BooleanVal ValidateArgType(FunctionContext* context, const StringVal& dummy) {
295 if (context->GetArgType(0)->type != FunctionContext::TYPE_STRING) {
296 return BooleanVal(false);
297 }
298 if (context->GetArgType(-1) != NULL) return BooleanVal(false);
299 if (context->GetArgType(1) != NULL) return BooleanVal(false);
300 return BooleanVal(true);
301}
302
303// Count UDF: counts the number of input rows per thread-local FunctionContext
304IMPALA_UDF_EXPORT

Callers

nothing calls this directly

Calls 2

BooleanValClass · 0.85
GetArgTypeMethod · 0.80

Tested by

no test coverage detected