Skip to content

Commit

Permalink
feat: handle unexpected metric value type
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 23, 2021
1 parent 6c071a0 commit 6ec28dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ func (c *Client) handlePacket(ctx context.Context, p proto.ServerCode, q Query)
e.Value = (*d)[i]
case *proto.ColUInt64:
e.Value = int64((*d)[i])
default:
return errors.Errorf("unexpected type %q for metric column", d.Type())
}
if ce := c.lg.Check(zap.DebugLevel, "ProfileEvent"); ce != nil {
ce.Write(
Expand Down

0 comments on commit 6ec28dc

Please sign in to comment.