From a17829169a820496e3a7f809cb674181953bedf4 Mon Sep 17 00:00:00 2001 From: Matthew Nibecker Date: Tue, 26 Nov 2024 14:46:19 -0500 Subject: [PATCH] vam: is null fix vectors with no nulls (#5504) --- runtime/vam/expr/compare.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/vam/expr/compare.go b/runtime/vam/expr/compare.go index 58b50ee24c..2cbede1235 100644 --- a/runtime/vam/expr/compare.go +++ b/runtime/vam/expr/compare.go @@ -103,5 +103,8 @@ func (i *isNull) eval(vecs ...vector.Any) vector.Any { if c, ok := vec.(*vector.Const); ok && c.Value().IsNull() { return vector.NewConst(super.True, vec.Len(), nil) } - return vector.NullsOf(vec) + if nulls := vector.NullsOf(vec); nulls != nil { + return nulls + } + return vector.NewConst(super.False, vec.Len(), nil) }