Skip to content

Commit

Permalink
vam: is null fix vectors with no nulls (#5504)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnibs authored Nov 26, 2024
1 parent 0f7b600 commit a178291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/vam/expr/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit a178291

Please sign in to comment.