Defines AggDateIntermediate(DATE, INT) returns DATE intermediate DATE Useful to test that type parameters are plumbed through.
| 176 | // intermediate DATE |
| 177 | // Useful to test that type parameters are plumbed through. |
| 178 | static 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 | |
| 186 | IMPALA_UDF_EXPORT |
| 187 | void AggDateIntermediateUpdate(FunctionContext* context, const DateVal&, |
no test coverage detected