Skip to content

Commit

Permalink
Fix time handling in vcache.loadPrimitive
Browse files Browse the repository at this point in the history
  • Loading branch information
nwt committed Dec 6, 2023
1 parent 46d5a58 commit f5f97ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/vcache/primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func loadPrimitive(typ zed.Type, m *meta.Primitive, r io.ReaderAt) (vector.Any,
bytes = b
}
switch typ := typ.(type) {
case *zed.TypeOfUint8, *zed.TypeOfUint16, *zed.TypeOfUint32, *zed.TypeOfUint64, *zed.TypeOfTime:
case *zed.TypeOfUint8, *zed.TypeOfUint16, *zed.TypeOfUint32, *zed.TypeOfUint64:
//XXX put valcnt in vng meta and use vector allocator
var vals []uint64
var nullslots []uint32
Expand All @@ -50,7 +50,7 @@ func loadPrimitive(typ zed.Type, m *meta.Primitive, r io.ReaderAt) (vector.Any,
}
}
return vector.NewUint(typ, vals, vector.NewNullmask(nullslots, len(vals))), nil
case *zed.TypeOfInt8, *zed.TypeOfInt16, *zed.TypeOfInt32, *zed.TypeOfInt64, *zed.TypeOfDuration:
case *zed.TypeOfInt8, *zed.TypeOfInt16, *zed.TypeOfInt32, *zed.TypeOfInt64, *zed.TypeOfDuration, *zed.TypeOfTime:
//XXX put valcnt in vng meta and use vector allocator
var vals []int64
var nullslots []uint32
Expand Down

0 comments on commit f5f97ed

Please sign in to comment.