Skip to content

Commit

Permalink
Fix vector.KindOfType for zed.TypeOfTime (#5293)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwt authored Sep 19, 2024
1 parent 2357e17 commit c43160e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vector/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func KindFromString(v string) Kind {

func KindOfType(typ zed.Type) Kind {
switch zed.TypeUnder(typ).(type) {
case *zed.TypeOfInt16, *zed.TypeOfInt32, *zed.TypeOfInt64, *zed.TypeOfDuration:
case *zed.TypeOfInt16, *zed.TypeOfInt32, *zed.TypeOfInt64, *zed.TypeOfDuration, *zed.TypeOfTime:
return KindInt
case *zed.TypeOfUint16, *zed.TypeOfUint32, *zed.TypeOfUint64, *zed.TypeOfTime:
case *zed.TypeOfUint16, *zed.TypeOfUint32, *zed.TypeOfUint64:
return KindUint
case *zed.TypeOfFloat16, *zed.TypeOfFloat32, *zed.TypeOfFloat64:
return KindFloat
Expand Down

0 comments on commit c43160e

Please sign in to comment.