add expected data type to series frame

pull/9060/head
Stuart Carnie 2017-11-06 11:12:27 -07:00
parent 728f5cc6ac
commit cf2227def1
4 changed files with 159 additions and 70 deletions

View File

@ -240,7 +240,7 @@ func (cmd *Command) query(c storage.StorageClient) error {
func (cmd *Command) processFramesSilent(frames []storage.ReadResponse_Frame) {
for _, frame := range frames {
switch f := frame.GetData().(type) {
switch f := frame.Data.(type) {
case *storage.ReadResponse_Frame_IntegerPoints:
for _, v := range f.IntegerPoints.Values {
cmd.integerSum += v
@ -273,7 +273,7 @@ func (cmd *Command) processFrames(wr *bufio.Writer, frames []storage.ReadRespons
var line []byte
for _, frame := range frames {
switch f := frame.GetData().(type) {
switch f := frame.Data.(type) {
case *storage.ReadResponse_Frame_Series:
s := f.Series
wr.WriteString("\033[36m")

View File

@ -99,6 +99,8 @@ func (r *rpcService) Read(req *ReadRequest, stream Storage_ReadServer) error {
switch cur := cur.(type) {
case tsdb.IntegerBatchCursor:
sf.DataType = DataTypeInteger
frame := &ReadResponse_IntegerPointsFrame{Timestamps: make([]int64, 0, batchSize), Values: make([]int64, 0, batchSize)}
res.Frames = append(res.Frames, ReadResponse_Frame{&ReadResponse_Frame_IntegerPoints{frame}})
@ -121,6 +123,8 @@ func (r *rpcService) Read(req *ReadRequest, stream Storage_ReadServer) error {
}
case tsdb.FloatBatchCursor:
sf.DataType = DataTypeFloat
frame := &ReadResponse_FloatPointsFrame{Timestamps: make([]int64, 0, batchSize), Values: make([]float64, 0, batchSize)}
res.Frames = append(res.Frames, ReadResponse_Frame{&ReadResponse_Frame_FloatPoints{frame}})
@ -143,6 +147,8 @@ func (r *rpcService) Read(req *ReadRequest, stream Storage_ReadServer) error {
}
case tsdb.UnsignedBatchCursor:
sf.DataType = DataTypeUnsigned
frame := &ReadResponse_UnsignedPointsFrame{Timestamps: make([]int64, 0, batchSize), Values: make([]uint64, 0, batchSize)}
res.Frames = append(res.Frames, ReadResponse_Frame{&ReadResponse_Frame_UnsignedPoints{frame}})
@ -165,6 +171,8 @@ func (r *rpcService) Read(req *ReadRequest, stream Storage_ReadServer) error {
}
case tsdb.BooleanBatchCursor:
sf.DataType = DataTypeBoolean
frame := &ReadResponse_BooleanPointsFrame{Timestamps: make([]int64, 0, batchSize), Values: make([]bool, 0, batchSize)}
res.Frames = append(res.Frames, ReadResponse_Frame{&ReadResponse_Frame_BooleanPoints{frame}})
@ -187,6 +195,8 @@ func (r *rpcService) Read(req *ReadRequest, stream Storage_ReadServer) error {
}
case tsdb.StringBatchCursor:
sf.DataType = DataTypeString
frame := &ReadResponse_StringPointsFrame{Timestamps: make([]int64, 0, batchSize), Values: make([]string, 0, batchSize)}
res.Frames = append(res.Frames, ReadResponse_Frame{&ReadResponse_Frame_StringPoints{frame}})

View File

@ -90,6 +90,38 @@ func (ReadResponse_FrameType) EnumDescriptor() ([]byte, []int) {
return fileDescriptorStorage, []int{3, 0}
}
type ReadResponse_DataType int32
const (
DataTypeFloat ReadResponse_DataType = 0
DataTypeInteger ReadResponse_DataType = 1
DataTypeUnsigned ReadResponse_DataType = 2
DataTypeBoolean ReadResponse_DataType = 3
DataTypeString ReadResponse_DataType = 4
)
var ReadResponse_DataType_name = map[int32]string{
0: "FLOAT",
1: "INTEGER",
2: "UNSIGNED",
3: "BOOLEAN",
4: "STRING",
}
var ReadResponse_DataType_value = map[string]int32{
"FLOAT": 0,
"INTEGER": 1,
"UNSIGNED": 2,
"BOOLEAN": 3,
"STRING": 4,
}
func (x ReadResponse_DataType) String() string {
return proto.EnumName(ReadResponse_DataType_name, int32(x))
}
func (ReadResponse_DataType) EnumDescriptor() ([]byte, []int) {
return fileDescriptorStorage, []int{3, 1}
}
// Request message for Storage.Read.
type ReadRequest struct {
// Database specifies the name of the database to issue the read request.
@ -395,6 +427,7 @@ func _ReadResponse_Frame_OneofSizer(msg proto.Message) (n int) {
type ReadResponse_SeriesFrame struct {
Tags []Tag `protobuf:"bytes,1,rep,name=tags" json:"tags"`
DataType ReadResponse_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,proto3,enum=storage.ReadResponse_DataType" json:"data_type,omitempty"`
}
func (m *ReadResponse_SeriesFrame) Reset() { *m = ReadResponse_SeriesFrame{} }
@ -511,6 +544,7 @@ func init() {
proto.RegisterType((*TimestampRange)(nil), "storage.TimestampRange")
proto.RegisterEnum("storage.Aggregate_AggregateType", Aggregate_AggregateType_name, Aggregate_AggregateType_value)
proto.RegisterEnum("storage.ReadResponse_FrameType", ReadResponse_FrameType_name, ReadResponse_FrameType_value)
proto.RegisterEnum("storage.ReadResponse_DataType", ReadResponse_DataType_name, ReadResponse_DataType_value)
}
func (m *ReadRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
@ -823,6 +857,11 @@ func (m *ReadResponse_SeriesFrame) MarshalTo(dAtA []byte) (int, error) {
i += n
}
}
if m.DataType != 0 {
dAtA[i] = 0x10
i++
i = encodeVarintStorage(dAtA, i, uint64(m.DataType))
}
return i, nil
}
@ -1371,6 +1410,9 @@ func (m *ReadResponse_SeriesFrame) Size() (n int) {
n += 1 + l + sovStorage(uint64(l))
}
}
if m.DataType != 0 {
n += 1 + sovStorage(uint64(m.DataType))
}
return n
}
@ -2335,6 +2377,25 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType)
}
m.DataType = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowStorage
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.DataType |= (ReadResponse_DataType(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipStorage(dAtA[iNdEx:])
@ -3585,71 +3646,78 @@ var (
func init() { proto.RegisterFile("storage.proto", fileDescriptorStorage) }
var fileDescriptorStorage = []byte{
// 1050 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x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52,
0xe0, 0x41, 0xa8, 0x33, 0x16, 0x84, 0x1a, 0xe6, 0xc7, 0xde, 0xdf, 0x2a, 0xac, 0x0f, 0x65, 0xd2,
0xbc, 0x18, 0x7e, 0x83, 0xd0, 0xf6, 0x8d, 0x0b, 0x25, 0x9e, 0x11, 0xc6, 0xfd, 0x95, 0xd7, 0xac,
0xad, 0xff, 0xf4, 0x47, 0x43, 0x79, 0xaa, 0xa2, 0x97, 0x50, 0xc9, 0x16, 0x8d, 0x76, 0xba, 0xf2,
0xa1, 0xd3, 0x8d, 0x1f, 0x3a, 0xdd, 0x7d, 0xfe, 0xd0, 0x31, 0x1e, 0xbe, 0xf7, 0x1b, 0x09, 0x3a,
0x15, 0x7d, 0x01, 0x05, 0x51, 0xe0, 0xad, 0x2c, 0x3b, 0x09, 0x4b, 0xfe, 0x43, 0x70, 0xf7, 0x35,
0x43, 0xe4, 0xd4, 0xdf, 0xbe, 0xfa, 0xb7, 0xa9, 0x5c, 0x2d, 0x9a, 0xea, 0x5f, 0x8b, 0xa6, 0xfa,
0xcf, 0xa2, 0xa9, 0xfe, 0xfa, 0x5f, 0x53, 0x19, 0x15, 0x05, 0xd3, 0xc7, 0xff, 0x07, 0x00, 0x00,
0xff, 0xff, 0xc2, 0x61, 0xdd, 0x48, 0xcf, 0x09, 0x00, 0x00,
// 1168 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x8f, 0xda, 0xc6,
0x17, 0xb7, 0xb1, 0x61, 0xe1, 0xf1, 0xcb, 0x3b, 0xd9, 0xec, 0x17, 0x39, 0xdf, 0x80, 0xc3, 0x21,
0xa5, 0x87, 0x90, 0x88, 0xb6, 0x6a, 0xda, 0xa8, 0x87, 0x90, 0x90, 0x40, 0xb3, 0x81, 0xd5, 0xc0,
0x4a, 0x3d, 0x54, 0xda, 0x9a, 0x65, 0x70, 0xac, 0x82, 0xed, 0x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50, 0xa4, 0x8e, 0xc5, 0x0a, 0x00, 0x00,
}

View File

@ -91,6 +91,16 @@ message ReadResponse {
POINTS = 1 [(gogoproto.enumvalue_customname) = "FrameTypePoints"];
}
enum DataType {
option (gogoproto.goproto_enum_prefix) = false;
FLOAT = 0 [(gogoproto.enumvalue_customname) = "DataTypeFloat"];
INTEGER = 1 [(gogoproto.enumvalue_customname) = "DataTypeInteger"];
UNSIGNED = 2 [(gogoproto.enumvalue_customname) = "DataTypeUnsigned"];
BOOLEAN = 3 [(gogoproto.enumvalue_customname) = "DataTypeBoolean"];
STRING = 4 [(gogoproto.enumvalue_customname) = "DataTypeString"];
}
message Frame {
oneof data {
SeriesFrame series = 1;
@ -104,6 +114,7 @@ message ReadResponse {
message SeriesFrame {
repeated Tag tags = 1 [(gogoproto.nullable) = false];
DataType data_type = 2;
}
message FloatPointsFrame {