ValidateOpen UDF: returns true if the UDF was opened, false otherwise. Can also be used to validate close since it will leak if it's not closed.
| 361 | // ValidateOpen UDF: returns true if the UDF was opened, false otherwise. Can also be |
| 362 | // used to validate close since it will leak if it's not closed. |
| 363 | IMPALA_UDF_EXPORT |
| 364 | void ValidateOpenPrepare( |
| 365 | FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
| 366 | if (scope == FunctionContext::THREAD_LOCAL) { |
| 367 | uint8_t* state = context->Allocate(100); |
| 368 | context->SetFunctionState(scope, state); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | IMPALA_UDF_EXPORT |
| 373 | BooleanVal ValidateOpen(FunctionContext* context, const IntVal& dummy) { |
nothing calls this directly
no test coverage detected