Skip to content

Commit 9619b03

Browse files
committed
expression: document ANY_VALUE hybrid vector path
1 parent a9b35b8 commit 9619b03

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/expression/builtin_miscellaneous_vec.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ func (b *builtinIntAnyValueSig) vecEvalInt(ctx EvalContext, input *chunk.Chunk,
365365
return b.args[0].VecEvalInt(ctx, input, result)
366366
}
367367

368+
// Non-hybrid integer results should keep the default string fallback. Hybrid return fields
369+
// delegate to the argument to preserve its binary/string representation in string contexts.
368370
func (b *builtinIntAnyValueSig) vecEvalString(ctx EvalContext, input *chunk.Chunk, result *chunk.Column) error {
369371
if !b.tp.Hybrid() {
370372
return b.baseBuiltinFunc.vecEvalString(ctx, input, result)

0 commit comments

Comments
 (0)