expression: implement vectorized evaluation for 'builtinDurationAnyValueSig' (#12605)
This commit is contained in:
@ -161,11 +161,11 @@ func (b *builtinLockSig) vecEvalInt(input *chunk.Chunk, result *chunk.Column) er
|
||||
}
|
||||
|
||||
func (b *builtinDurationAnyValueSig) vectorized() bool {
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
func (b *builtinDurationAnyValueSig) vecEvalDuration(input *chunk.Chunk, result *chunk.Column) error {
|
||||
return errors.Errorf("not implemented")
|
||||
return b.args[0].VecEvalDuration(b.ctx, input, result)
|
||||
}
|
||||
|
||||
func (b *builtinIntAnyValueSig) vectorized() bool {
|
||||
|
||||
@ -36,6 +36,9 @@ var vecBuiltinMiscellaneousCases = map[string][]vecExprBenchCase{
|
||||
ast.IsIPv4: {
|
||||
{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETString}},
|
||||
},
|
||||
ast.AnyValue: {
|
||||
{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration}},
|
||||
},
|
||||
ast.NameConst: {
|
||||
{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETString, types.ETDuration}},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user