ScalarFunction is the function that returns a value.
| 39 | |
| 40 | // ScalarFunction is the function that returns a value. |
| 41 | type ScalarFunction struct { |
| 42 | FuncName model.CIStr |
| 43 | // RetType is the type that ScalarFunction returns. |
| 44 | // TODO: Implement type inference here, now we use ast's return type temporarily. |
| 45 | RetType *types.FieldType `plan-cache-clone:"shallow"` |
| 46 | Function builtinFunc |
| 47 | hashcode []byte |
| 48 | canonicalhashcode []byte |
| 49 | } |
| 50 | |
| 51 | // VecEvalInt evaluates this expression in a vectorized manner. |
| 52 | func (sf *ScalarFunction) VecEvalInt(ctx EvalContext, input *chunk.Chunk, result *chunk.Column) error { |
nothing calls this directly
no outgoing calls
no test coverage detected