diff --git a/vector/const.go b/vector/const.go index f24f25b57..53bfb028b 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} }