Skip to content

Commit 1201d20

Browse files
authored
vector: set Const.Nulls to true if NewConst val param is null (#6477)
1 parent 92bbf25 commit 1201d20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vector/const.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ type Const struct {
1616
var _ Any = (*Const)(nil)
1717

1818
func NewConst(val super.Value, len uint32, nulls bitvec.Bits) *Const {
19+
if val.IsNull() {
20+
nulls = bitvec.NewTrue(len)
21+
}
1922
return &Const{val: val, len: len, Nulls: nulls}
2023
}
2124

0 commit comments

Comments
 (0)