From c87cf5884a1221304a960ea6646705edffe9acc8 Mon Sep 17 00:00:00 2001 From: Noah Treuhaft Date: Mon, 29 Dec 2025 17:06:48 -0500 Subject: [PATCH] vector: set Const.Nulls to true if NewConst val param is null --- vector/const.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/const.go b/vector/const.go index f24f25b577..53bfb028b3 100644 --- a/vector/const.go +++ b/vector/const.go @@ -16,6 +16,9 @@ type Const struct { var _ Any = (*Const)(nil) func NewConst(val super.Value, len uint32, nulls bitvec.Bits) *Const { + if val.IsNull() { + nulls = bitvec.NewTrue(len) + } return &Const{val: val, len: len, Nulls: nulls} }