| 291 | } |
| 292 | |
| 293 | IMPALA_UDF_EXPORT |
| 294 | BooleanVal 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 |
| 304 | IMPALA_UDF_EXPORT |
nothing calls this directly
no test coverage detected