зеркало из https://github.com/github/vitess-gh.git
Adding ResultExtras to Result for Invalidation.
ResultExtras is part of Query Result. It contains: - an optional EventToken (returned if ExecuteOptions.include_event_token is set) - an optional 'fresher' flag (set if ExecuteOptions.compare_event_token is set, and that token is older than the current TabletServer event token.) The flags are set by TabletServer, and merged by VtGate.ScatterConn.
This commit is contained in:
Родитель
4edf1b231a
Коммит
f840e69b36
|
@ -67,6 +67,7 @@ func ResultToProto3(qr *Result) *querypb.QueryResult {
|
||||||
RowsAffected: qr.RowsAffected,
|
RowsAffected: qr.RowsAffected,
|
||||||
InsertId: qr.InsertID,
|
InsertId: qr.InsertID,
|
||||||
Rows: RowsToProto3(qr.Rows),
|
Rows: RowsToProto3(qr.Rows),
|
||||||
|
Extras: qr.Extras,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,6 +82,7 @@ func Proto3ToResult(qr *querypb.QueryResult) *Result {
|
||||||
RowsAffected: qr.RowsAffected,
|
RowsAffected: qr.RowsAffected,
|
||||||
InsertID: qr.InsertId,
|
InsertID: qr.InsertId,
|
||||||
Rows: proto3ToRows(qr.Fields, qr.Rows),
|
Rows: proto3ToRows(qr.Fields, qr.Rows),
|
||||||
|
Extras: qr.Extras,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,6 +98,7 @@ func CustomProto3ToResult(fields []*querypb.Field, qr *querypb.QueryResult) *Res
|
||||||
RowsAffected: qr.RowsAffected,
|
RowsAffected: qr.RowsAffected,
|
||||||
InsertID: qr.InsertId,
|
InsertID: qr.InsertId,
|
||||||
Rows: proto3ToRows(fields, qr.Rows),
|
Rows: proto3ToRows(fields, qr.Rows),
|
||||||
|
Extras: qr.Extras,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,13 @@ func TestResult(t *testing.T) {
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard0",
|
||||||
|
Position: "position0",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
p3Result := &querypb.QueryResult{
|
p3Result := &querypb.QueryResult{
|
||||||
Fields: fields,
|
Fields: fields,
|
||||||
|
@ -47,6 +54,13 @@ func TestResult(t *testing.T) {
|
||||||
Lengths: []int64{2, -1, -1},
|
Lengths: []int64{2, -1, -1},
|
||||||
Values: []byte("bb"),
|
Values: []byte("bb"),
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard0",
|
||||||
|
Position: "position0",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
p3converted := ResultToProto3(sqlResult)
|
p3converted := ResultToProto3(sqlResult)
|
||||||
if !reflect.DeepEqual(p3converted, p3Result) {
|
if !reflect.DeepEqual(p3converted, p3Result) {
|
||||||
|
@ -97,6 +111,13 @@ func TestResults(t *testing.T) {
|
||||||
testVal(Int64, "1"),
|
testVal(Int64, "1"),
|
||||||
testVal(Float64, "2"),
|
testVal(Float64, "2"),
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard0",
|
||||||
|
Position: "position0",
|
||||||
|
},
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
Fields: fields2,
|
Fields: fields2,
|
||||||
InsertID: 3,
|
InsertID: 3,
|
||||||
|
@ -106,6 +127,13 @@ func TestResults(t *testing.T) {
|
||||||
testVal(Int64, "3"),
|
testVal(Int64, "3"),
|
||||||
testVal(Float64, "4"),
|
testVal(Float64, "4"),
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard1",
|
||||||
|
Position: "position1",
|
||||||
|
},
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
p3Results := []*querypb.QueryResult{{
|
p3Results := []*querypb.QueryResult{{
|
||||||
Fields: fields1,
|
Fields: fields1,
|
||||||
|
@ -115,6 +143,13 @@ func TestResults(t *testing.T) {
|
||||||
Lengths: []int64{2, 1, 1},
|
Lengths: []int64{2, 1, 1},
|
||||||
Values: []byte("aa12"),
|
Values: []byte("aa12"),
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard0",
|
||||||
|
Position: "position0",
|
||||||
|
},
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
Fields: fields2,
|
Fields: fields2,
|
||||||
InsertId: 3,
|
InsertId: 3,
|
||||||
|
@ -123,6 +158,13 @@ func TestResults(t *testing.T) {
|
||||||
Lengths: []int64{2, 1, 1},
|
Lengths: []int64{2, 1, 1},
|
||||||
Values: []byte("bb34"),
|
Values: []byte("bb34"),
|
||||||
}},
|
}},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "shard1",
|
||||||
|
Position: "position1",
|
||||||
|
},
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
p3converted := ResultsToProto3(sqlResults)
|
p3converted := ResultsToProto3(sqlResults)
|
||||||
if !reflect.DeepEqual(p3converted, p3Results) {
|
if !reflect.DeepEqual(p3converted, p3Results) {
|
||||||
|
|
|
@ -8,10 +8,11 @@ import querypb "github.com/youtube/vitess/go/vt/proto/query"
|
||||||
|
|
||||||
// Result represents a query result.
|
// Result represents a query result.
|
||||||
type Result struct {
|
type Result struct {
|
||||||
Fields []*querypb.Field `json:"fields"`
|
Fields []*querypb.Field `json:"fields"`
|
||||||
RowsAffected uint64 `json:"rows_affected"`
|
RowsAffected uint64 `json:"rows_affected"`
|
||||||
InsertID uint64 `json:"insert_id"`
|
InsertID uint64 `json:"insert_id"`
|
||||||
Rows [][]Value `json:"rows"`
|
Rows [][]Value `json:"rows"`
|
||||||
|
Extras *querypb.ResultExtras `json:"extras"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResultStream is an interface for receiving Result. It is used for
|
// ResultStream is an interface for receiving Result. It is used for
|
||||||
|
@ -67,6 +68,18 @@ func (result *Result) Copy() *Result {
|
||||||
}
|
}
|
||||||
out.Rows = rows
|
out.Rows = rows
|
||||||
}
|
}
|
||||||
|
if result.Extras != nil {
|
||||||
|
out.Extras = &querypb.ResultExtras{
|
||||||
|
Fresher: result.Extras.Fresher,
|
||||||
|
}
|
||||||
|
if result.Extras.EventToken != nil {
|
||||||
|
out.Extras.EventToken = &querypb.EventToken{
|
||||||
|
Timestamp: result.Extras.EventToken.Timestamp,
|
||||||
|
Shard: result.Extras.EventToken.Shard,
|
||||||
|
Position: result.Extras.EventToken.Position,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,22 +103,17 @@ func MakeRowTrusted(fields []*querypb.Field, row *querypb.Row) []Value {
|
||||||
// StripFieldNames will return a new Result that has the same Rows,
|
// StripFieldNames will return a new Result that has the same Rows,
|
||||||
// but the Field objects will have their Name emptied. Note we don't
|
// but the Field objects will have their Name emptied. Note we don't
|
||||||
// proto.Copy each Field for performance reasons, but we only copy the
|
// proto.Copy each Field for performance reasons, but we only copy the
|
||||||
// Type field. If/when more fields are added to pb.Field, they will
|
// individual fields.
|
||||||
// also need to be copied. Same for Result.
|
|
||||||
func (result *Result) StripFieldNames() *Result {
|
func (result *Result) StripFieldNames() *Result {
|
||||||
if len(result.Fields) == 0 {
|
if len(result.Fields) == 0 {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
r := &Result{
|
r := *result
|
||||||
Fields: make([]*querypb.Field, len(result.Fields)),
|
r.Fields = make([]*querypb.Field, len(result.Fields))
|
||||||
RowsAffected: result.RowsAffected,
|
|
||||||
InsertID: result.InsertID,
|
|
||||||
Rows: result.Rows,
|
|
||||||
}
|
|
||||||
newFieldsArray := make([]querypb.Field, len(result.Fields))
|
newFieldsArray := make([]querypb.Field, len(result.Fields))
|
||||||
for i, f := range result.Fields {
|
for i, f := range result.Fields {
|
||||||
r.Fields[i] = &newFieldsArray[i]
|
r.Fields[i] = &newFieldsArray[i]
|
||||||
newFieldsArray[i].Type = f.Type
|
newFieldsArray[i].Type = f.Type
|
||||||
}
|
}
|
||||||
return r
|
return &r
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,14 @@ func TestCopy(t *testing.T) {
|
||||||
{testVal(Int64, "2"), MakeTrusted(VarChar, nil)},
|
{testVal(Int64, "2"), MakeTrusted(VarChar, nil)},
|
||||||
{testVal(Int64, "3"), testVal(VarChar, "")},
|
{testVal(Int64, "3"), testVal(VarChar, "")},
|
||||||
},
|
},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "sh",
|
||||||
|
Position: "po",
|
||||||
|
},
|
||||||
|
Fresher: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
want := &Result{
|
want := &Result{
|
||||||
Fields: []*querypb.Field{{
|
Fields: []*querypb.Field{{
|
||||||
|
@ -63,6 +71,14 @@ func TestCopy(t *testing.T) {
|
||||||
{testVal(Int64, "2"), testVal(VarChar, "")},
|
{testVal(Int64, "2"), testVal(VarChar, "")},
|
||||||
{testVal(Int64, "3"), testVal(VarChar, "")},
|
{testVal(Int64, "3"), testVal(VarChar, "")},
|
||||||
},
|
},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "sh",
|
||||||
|
Position: "po",
|
||||||
|
},
|
||||||
|
Fresher: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
out := in.Copy()
|
out := in.Copy()
|
||||||
// Change in so we're sure out got actually copied
|
// Change in so we're sure out got actually copied
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
// Package eventtoken includes utility methods for event token
|
||||||
|
// handling.
|
||||||
|
//
|
||||||
|
// FIXME(alainjobart): it will be used to compare event tokens in
|
||||||
|
// other ways later, but for now it's a bit small.
|
||||||
|
package eventtoken
|
||||||
|
|
||||||
|
import (
|
||||||
|
querypb "github.com/youtube/vitess/go/vt/proto/query"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Minimum returns an event token that is guaranteed to happen before
|
||||||
|
// both provided EventToken objects.
|
||||||
|
//
|
||||||
|
// FIXME(alainjobart) for now, we always strip the shard and position,
|
||||||
|
// and only look at timestamp. It is only used across shards so it's
|
||||||
|
// not a big deal. When we compare values within a shard, we'll have
|
||||||
|
// to fix this.
|
||||||
|
func Minimum(ev1, ev2 *querypb.EventToken) *querypb.EventToken {
|
||||||
|
if ev1 == nil || ev2 == nil {
|
||||||
|
// One or the other is not set, we can't do anything.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if ev1.Timestamp < ev2.Timestamp {
|
||||||
|
return &querypb.EventToken{
|
||||||
|
Timestamp: ev1.Timestamp,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &querypb.EventToken{
|
||||||
|
Timestamp: ev2.Timestamp,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fresher returns true if ev1 is fresher than ev2. In case of doubt,
|
||||||
|
// it returns false.
|
||||||
|
//
|
||||||
|
// FIXME(alainjobart): if both events come from the same shard, we can
|
||||||
|
// compare replication position (after parsing it). Need to implement that.
|
||||||
|
// FIMXE(alainjobart): when it's more than just a simple compare, add
|
||||||
|
// unit tests too.
|
||||||
|
func Fresher(ev1, ev2 *querypb.EventToken) bool {
|
||||||
|
if ev1 == nil || ev2 == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return ev1.Timestamp > ev2.Timestamp
|
||||||
|
}
|
|
@ -0,0 +1,63 @@
|
||||||
|
package eventtoken
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/golang/protobuf/proto"
|
||||||
|
querypb "github.com/youtube/vitess/go/vt/proto/query"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestMinimum(t *testing.T) {
|
||||||
|
testcases := []struct {
|
||||||
|
ev1 *querypb.EventToken
|
||||||
|
ev2 *querypb.EventToken
|
||||||
|
expected *querypb.EventToken
|
||||||
|
}{{
|
||||||
|
ev1: nil,
|
||||||
|
ev2: nil,
|
||||||
|
expected: nil,
|
||||||
|
}, {
|
||||||
|
ev1: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
ev2: nil,
|
||||||
|
expected: nil,
|
||||||
|
}, {
|
||||||
|
ev1: nil,
|
||||||
|
ev2: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
expected: nil,
|
||||||
|
}, {
|
||||||
|
ev1: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
ev2: &querypb.EventToken{
|
||||||
|
Timestamp: 456,
|
||||||
|
},
|
||||||
|
expected: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
ev1: &querypb.EventToken{
|
||||||
|
Timestamp: 456,
|
||||||
|
},
|
||||||
|
ev2: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
expected: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
|
||||||
|
for _, tcase := range testcases {
|
||||||
|
got := Minimum(tcase.ev1, tcase.ev2)
|
||||||
|
if tcase.expected == nil && got != nil {
|
||||||
|
t.Errorf("expected nil result for Minimum(%v, %v) but got: %v", tcase.ev1, tcase.ev2, got)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if !proto.Equal(got, tcase.expected) {
|
||||||
|
t.Errorf("got %v but expected %v for Minimum(%v, %v)", got, tcase.expected, tcase.ev1, tcase.ev2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -18,6 +18,7 @@ It has these top-level messages:
|
||||||
ExecuteOptions
|
ExecuteOptions
|
||||||
Field
|
Field
|
||||||
Row
|
Row
|
||||||
|
ResultExtras
|
||||||
QueryResult
|
QueryResult
|
||||||
StreamEvent
|
StreamEvent
|
||||||
ExecuteRequest
|
ExecuteRequest
|
||||||
|
@ -288,7 +289,7 @@ func (x StreamEvent_Statement_Category) String() string {
|
||||||
return proto.EnumName(StreamEvent_Statement_Category_name, int32(x))
|
return proto.EnumName(StreamEvent_Statement_Category_name, int32(x))
|
||||||
}
|
}
|
||||||
func (StreamEvent_Statement_Category) EnumDescriptor() ([]byte, []int) {
|
func (StreamEvent_Statement_Category) EnumDescriptor() ([]byte, []int) {
|
||||||
return fileDescriptor0, []int{10, 0, 0}
|
return fileDescriptor0, []int{11, 0, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
type SplitQueryRequest_Algorithm int32
|
type SplitQueryRequest_Algorithm int32
|
||||||
|
@ -311,7 +312,7 @@ func (x SplitQueryRequest_Algorithm) String() string {
|
||||||
return proto.EnumName(SplitQueryRequest_Algorithm_name, int32(x))
|
return proto.EnumName(SplitQueryRequest_Algorithm_name, int32(x))
|
||||||
}
|
}
|
||||||
func (SplitQueryRequest_Algorithm) EnumDescriptor() ([]byte, []int) {
|
func (SplitQueryRequest_Algorithm) EnumDescriptor() ([]byte, []int) {
|
||||||
return fileDescriptor0, []int{27, 0}
|
return fileDescriptor0, []int{28, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Target describes what the client expects the tablet is.
|
// Target describes what the client expects the tablet is.
|
||||||
|
@ -421,6 +422,12 @@ type ExecuteOptions struct {
|
||||||
// This is an optimization for high-QPS queries where the client knows
|
// This is an optimization for high-QPS queries where the client knows
|
||||||
// what it's getting.
|
// what it's getting.
|
||||||
ExcludeFieldNames bool `protobuf:"varint,1,opt,name=exclude_field_names,json=excludeFieldNames" json:"exclude_field_names,omitempty"`
|
ExcludeFieldNames bool `protobuf:"varint,1,opt,name=exclude_field_names,json=excludeFieldNames" json:"exclude_field_names,omitempty"`
|
||||||
|
// If set, we will try to include an EventToken with the responses.
|
||||||
|
IncludeEventToken bool `protobuf:"varint,2,opt,name=include_event_token,json=includeEventToken" json:"include_event_token,omitempty"`
|
||||||
|
// If set, the fresher field may be set as a result comparison to this token.
|
||||||
|
// This is a shortcut so the application doesn't need to care about
|
||||||
|
// comparing EventTokens.
|
||||||
|
CompareEventToken *EventToken `protobuf:"bytes,3,opt,name=compare_event_token,json=compareEventToken" json:"compare_event_token,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ExecuteOptions) Reset() { *m = ExecuteOptions{} }
|
func (m *ExecuteOptions) Reset() { *m = ExecuteOptions{} }
|
||||||
|
@ -428,6 +435,13 @@ func (m *ExecuteOptions) String() string { return proto.CompactTextSt
|
||||||
func (*ExecuteOptions) ProtoMessage() {}
|
func (*ExecuteOptions) ProtoMessage() {}
|
||||||
func (*ExecuteOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
func (*ExecuteOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||||
|
|
||||||
|
func (m *ExecuteOptions) GetCompareEventToken() *EventToken {
|
||||||
|
if m != nil {
|
||||||
|
return m.CompareEventToken
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// Field describes a single column returned by a query
|
// Field describes a single column returned by a query
|
||||||
type Field struct {
|
type Field struct {
|
||||||
// name of the field as returned by mysql C API
|
// name of the field as returned by mysql C API
|
||||||
|
@ -457,6 +471,29 @@ func (m *Row) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Row) ProtoMessage() {}
|
func (*Row) ProtoMessage() {}
|
||||||
func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||||
|
|
||||||
|
// ResultExtras contains optional out-of-band information. Usually the
|
||||||
|
// extras are requested by adding ExecuteOptions flags.
|
||||||
|
type ResultExtras struct {
|
||||||
|
// event_token is populated if the include_event_token flag is set
|
||||||
|
// in ExecuteOptions.
|
||||||
|
EventToken *EventToken `protobuf:"bytes,1,opt,name=event_token,json=eventToken" json:"event_token,omitempty"`
|
||||||
|
// If set, it means the data returned with this result is fresher
|
||||||
|
// than the compare_token passed in the ExecuteOptions.
|
||||||
|
Fresher bool `protobuf:"varint,2,opt,name=fresher" json:"fresher,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ResultExtras) Reset() { *m = ResultExtras{} }
|
||||||
|
func (m *ResultExtras) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*ResultExtras) ProtoMessage() {}
|
||||||
|
func (*ResultExtras) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||||
|
|
||||||
|
func (m *ResultExtras) GetEventToken() *EventToken {
|
||||||
|
if m != nil {
|
||||||
|
return m.EventToken
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// QueryResult is returned by Execute and ExecuteStream.
|
// QueryResult is returned by Execute and ExecuteStream.
|
||||||
//
|
//
|
||||||
// As returned by Execute, len(fields) is always equal to len(row)
|
// As returned by Execute, len(fields) is always equal to len(row)
|
||||||
|
@ -467,16 +504,17 @@ func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||||
// len(QueryResult[0].fields) is always equal to len(row) (for each
|
// len(QueryResult[0].fields) is always equal to len(row) (for each
|
||||||
// row in rows for each QueryResult in QueryResult[1:]).
|
// row in rows for each QueryResult in QueryResult[1:]).
|
||||||
type QueryResult struct {
|
type QueryResult struct {
|
||||||
Fields []*Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
|
Fields []*Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
|
||||||
RowsAffected uint64 `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected" json:"rows_affected,omitempty"`
|
RowsAffected uint64 `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected" json:"rows_affected,omitempty"`
|
||||||
InsertId uint64 `protobuf:"varint,3,opt,name=insert_id,json=insertId" json:"insert_id,omitempty"`
|
InsertId uint64 `protobuf:"varint,3,opt,name=insert_id,json=insertId" json:"insert_id,omitempty"`
|
||||||
Rows []*Row `protobuf:"bytes,4,rep,name=rows" json:"rows,omitempty"`
|
Rows []*Row `protobuf:"bytes,4,rep,name=rows" json:"rows,omitempty"`
|
||||||
|
Extras *ResultExtras `protobuf:"bytes,5,opt,name=extras" json:"extras,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryResult) Reset() { *m = QueryResult{} }
|
func (m *QueryResult) Reset() { *m = QueryResult{} }
|
||||||
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
|
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QueryResult) ProtoMessage() {}
|
func (*QueryResult) ProtoMessage() {}
|
||||||
func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||||
|
|
||||||
func (m *QueryResult) GetFields() []*Field {
|
func (m *QueryResult) GetFields() []*Field {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -492,6 +530,13 @@ func (m *QueryResult) GetRows() []*Row {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *QueryResult) GetExtras() *ResultExtras {
|
||||||
|
if m != nil {
|
||||||
|
return m.Extras
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// StreamEvent describes a set of transformations that happened as a
|
// StreamEvent describes a set of transformations that happened as a
|
||||||
// single transactional unit on a server. It is streamed back by the
|
// single transactional unit on a server. It is streamed back by the
|
||||||
// Update Stream calls.
|
// Update Stream calls.
|
||||||
|
@ -505,7 +550,7 @@ type StreamEvent struct {
|
||||||
func (m *StreamEvent) Reset() { *m = StreamEvent{} }
|
func (m *StreamEvent) Reset() { *m = StreamEvent{} }
|
||||||
func (m *StreamEvent) String() string { return proto.CompactTextString(m) }
|
func (m *StreamEvent) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamEvent) ProtoMessage() {}
|
func (*StreamEvent) ProtoMessage() {}
|
||||||
func (*StreamEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
func (*StreamEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
||||||
|
|
||||||
func (m *StreamEvent) GetStatements() []*StreamEvent_Statement {
|
func (m *StreamEvent) GetStatements() []*StreamEvent_Statement {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -536,7 +581,7 @@ type StreamEvent_Statement struct {
|
||||||
func (m *StreamEvent_Statement) Reset() { *m = StreamEvent_Statement{} }
|
func (m *StreamEvent_Statement) Reset() { *m = StreamEvent_Statement{} }
|
||||||
func (m *StreamEvent_Statement) String() string { return proto.CompactTextString(m) }
|
func (m *StreamEvent_Statement) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamEvent_Statement) ProtoMessage() {}
|
func (*StreamEvent_Statement) ProtoMessage() {}
|
||||||
func (*StreamEvent_Statement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10, 0} }
|
func (*StreamEvent_Statement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11, 0} }
|
||||||
|
|
||||||
func (m *StreamEvent_Statement) GetPrimaryKeyFields() []*Field {
|
func (m *StreamEvent_Statement) GetPrimaryKeyFields() []*Field {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -565,7 +610,7 @@ type ExecuteRequest struct {
|
||||||
func (m *ExecuteRequest) Reset() { *m = ExecuteRequest{} }
|
func (m *ExecuteRequest) Reset() { *m = ExecuteRequest{} }
|
||||||
func (m *ExecuteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ExecuteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ExecuteRequest) ProtoMessage() {}
|
func (*ExecuteRequest) ProtoMessage() {}
|
||||||
func (*ExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
func (*ExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
||||||
|
|
||||||
func (m *ExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *ExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -610,7 +655,7 @@ type ExecuteResponse struct {
|
||||||
func (m *ExecuteResponse) Reset() { *m = ExecuteResponse{} }
|
func (m *ExecuteResponse) Reset() { *m = ExecuteResponse{} }
|
||||||
func (m *ExecuteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ExecuteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ExecuteResponse) ProtoMessage() {}
|
func (*ExecuteResponse) ProtoMessage() {}
|
||||||
func (*ExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
func (*ExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
||||||
|
|
||||||
func (m *ExecuteResponse) GetResult() *QueryResult {
|
func (m *ExecuteResponse) GetResult() *QueryResult {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -633,7 +678,7 @@ type ExecuteBatchRequest struct {
|
||||||
func (m *ExecuteBatchRequest) Reset() { *m = ExecuteBatchRequest{} }
|
func (m *ExecuteBatchRequest) Reset() { *m = ExecuteBatchRequest{} }
|
||||||
func (m *ExecuteBatchRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ExecuteBatchRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ExecuteBatchRequest) ProtoMessage() {}
|
func (*ExecuteBatchRequest) ProtoMessage() {}
|
||||||
func (*ExecuteBatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
func (*ExecuteBatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
||||||
|
|
||||||
func (m *ExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *ExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -678,7 +723,7 @@ type ExecuteBatchResponse struct {
|
||||||
func (m *ExecuteBatchResponse) Reset() { *m = ExecuteBatchResponse{} }
|
func (m *ExecuteBatchResponse) Reset() { *m = ExecuteBatchResponse{} }
|
||||||
func (m *ExecuteBatchResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ExecuteBatchResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ExecuteBatchResponse) ProtoMessage() {}
|
func (*ExecuteBatchResponse) ProtoMessage() {}
|
||||||
func (*ExecuteBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
func (*ExecuteBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||||
|
|
||||||
func (m *ExecuteBatchResponse) GetResults() []*QueryResult {
|
func (m *ExecuteBatchResponse) GetResults() []*QueryResult {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -699,7 +744,7 @@ type StreamExecuteRequest struct {
|
||||||
func (m *StreamExecuteRequest) Reset() { *m = StreamExecuteRequest{} }
|
func (m *StreamExecuteRequest) Reset() { *m = StreamExecuteRequest{} }
|
||||||
func (m *StreamExecuteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *StreamExecuteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamExecuteRequest) ProtoMessage() {}
|
func (*StreamExecuteRequest) ProtoMessage() {}
|
||||||
func (*StreamExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
func (*StreamExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||||
|
|
||||||
func (m *StreamExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *StreamExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -744,7 +789,7 @@ type StreamExecuteResponse struct {
|
||||||
func (m *StreamExecuteResponse) Reset() { *m = StreamExecuteResponse{} }
|
func (m *StreamExecuteResponse) Reset() { *m = StreamExecuteResponse{} }
|
||||||
func (m *StreamExecuteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *StreamExecuteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamExecuteResponse) ProtoMessage() {}
|
func (*StreamExecuteResponse) ProtoMessage() {}
|
||||||
func (*StreamExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
func (*StreamExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||||
|
|
||||||
func (m *StreamExecuteResponse) GetResult() *QueryResult {
|
func (m *StreamExecuteResponse) GetResult() *QueryResult {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -763,7 +808,7 @@ type BeginRequest struct {
|
||||||
func (m *BeginRequest) Reset() { *m = BeginRequest{} }
|
func (m *BeginRequest) Reset() { *m = BeginRequest{} }
|
||||||
func (m *BeginRequest) String() string { return proto.CompactTextString(m) }
|
func (m *BeginRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginRequest) ProtoMessage() {}
|
func (*BeginRequest) ProtoMessage() {}
|
||||||
func (*BeginRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
func (*BeginRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||||
|
|
||||||
func (m *BeginRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *BeginRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -794,7 +839,7 @@ type BeginResponse struct {
|
||||||
func (m *BeginResponse) Reset() { *m = BeginResponse{} }
|
func (m *BeginResponse) Reset() { *m = BeginResponse{} }
|
||||||
func (m *BeginResponse) String() string { return proto.CompactTextString(m) }
|
func (m *BeginResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginResponse) ProtoMessage() {}
|
func (*BeginResponse) ProtoMessage() {}
|
||||||
func (*BeginResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
func (*BeginResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
|
||||||
|
|
||||||
// CommitRequest is the payload to Commit
|
// CommitRequest is the payload to Commit
|
||||||
type CommitRequest struct {
|
type CommitRequest struct {
|
||||||
|
@ -807,7 +852,7 @@ type CommitRequest struct {
|
||||||
func (m *CommitRequest) Reset() { *m = CommitRequest{} }
|
func (m *CommitRequest) Reset() { *m = CommitRequest{} }
|
||||||
func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
|
func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CommitRequest) ProtoMessage() {}
|
func (*CommitRequest) ProtoMessage() {}
|
||||||
func (*CommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
|
func (*CommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
|
||||||
|
|
||||||
func (m *CommitRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *CommitRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -837,7 +882,7 @@ type CommitResponse struct {
|
||||||
func (m *CommitResponse) Reset() { *m = CommitResponse{} }
|
func (m *CommitResponse) Reset() { *m = CommitResponse{} }
|
||||||
func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
|
func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CommitResponse) ProtoMessage() {}
|
func (*CommitResponse) ProtoMessage() {}
|
||||||
func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
|
func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
|
||||||
|
|
||||||
// RollbackRequest is the payload to Rollback
|
// RollbackRequest is the payload to Rollback
|
||||||
type RollbackRequest struct {
|
type RollbackRequest struct {
|
||||||
|
@ -850,7 +895,7 @@ type RollbackRequest struct {
|
||||||
func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
|
func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
|
||||||
func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
|
func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*RollbackRequest) ProtoMessage() {}
|
func (*RollbackRequest) ProtoMessage() {}
|
||||||
func (*RollbackRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
|
func (*RollbackRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
|
||||||
|
|
||||||
func (m *RollbackRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *RollbackRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -880,7 +925,7 @@ type RollbackResponse struct {
|
||||||
func (m *RollbackResponse) Reset() { *m = RollbackResponse{} }
|
func (m *RollbackResponse) Reset() { *m = RollbackResponse{} }
|
||||||
func (m *RollbackResponse) String() string { return proto.CompactTextString(m) }
|
func (m *RollbackResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*RollbackResponse) ProtoMessage() {}
|
func (*RollbackResponse) ProtoMessage() {}
|
||||||
func (*RollbackResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
|
func (*RollbackResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
|
||||||
|
|
||||||
// BeginExecuteRequest is the payload to BeginExecute
|
// BeginExecuteRequest is the payload to BeginExecute
|
||||||
type BeginExecuteRequest struct {
|
type BeginExecuteRequest struct {
|
||||||
|
@ -894,7 +939,7 @@ type BeginExecuteRequest struct {
|
||||||
func (m *BeginExecuteRequest) Reset() { *m = BeginExecuteRequest{} }
|
func (m *BeginExecuteRequest) Reset() { *m = BeginExecuteRequest{} }
|
||||||
func (m *BeginExecuteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *BeginExecuteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginExecuteRequest) ProtoMessage() {}
|
func (*BeginExecuteRequest) ProtoMessage() {}
|
||||||
func (*BeginExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
|
func (*BeginExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
|
||||||
|
|
||||||
func (m *BeginExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *BeginExecuteRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -945,7 +990,7 @@ type BeginExecuteResponse struct {
|
||||||
func (m *BeginExecuteResponse) Reset() { *m = BeginExecuteResponse{} }
|
func (m *BeginExecuteResponse) Reset() { *m = BeginExecuteResponse{} }
|
||||||
func (m *BeginExecuteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *BeginExecuteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginExecuteResponse) ProtoMessage() {}
|
func (*BeginExecuteResponse) ProtoMessage() {}
|
||||||
func (*BeginExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
|
func (*BeginExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
|
||||||
|
|
||||||
func (m *BeginExecuteResponse) GetError() *vtrpc.RPCError {
|
func (m *BeginExecuteResponse) GetError() *vtrpc.RPCError {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -974,7 +1019,7 @@ type BeginExecuteBatchRequest struct {
|
||||||
func (m *BeginExecuteBatchRequest) Reset() { *m = BeginExecuteBatchRequest{} }
|
func (m *BeginExecuteBatchRequest) Reset() { *m = BeginExecuteBatchRequest{} }
|
||||||
func (m *BeginExecuteBatchRequest) String() string { return proto.CompactTextString(m) }
|
func (m *BeginExecuteBatchRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginExecuteBatchRequest) ProtoMessage() {}
|
func (*BeginExecuteBatchRequest) ProtoMessage() {}
|
||||||
func (*BeginExecuteBatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
|
func (*BeginExecuteBatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
|
||||||
|
|
||||||
func (m *BeginExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *BeginExecuteBatchRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1025,7 +1070,7 @@ type BeginExecuteBatchResponse struct {
|
||||||
func (m *BeginExecuteBatchResponse) Reset() { *m = BeginExecuteBatchResponse{} }
|
func (m *BeginExecuteBatchResponse) Reset() { *m = BeginExecuteBatchResponse{} }
|
||||||
func (m *BeginExecuteBatchResponse) String() string { return proto.CompactTextString(m) }
|
func (m *BeginExecuteBatchResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BeginExecuteBatchResponse) ProtoMessage() {}
|
func (*BeginExecuteBatchResponse) ProtoMessage() {}
|
||||||
func (*BeginExecuteBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
|
func (*BeginExecuteBatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
|
||||||
|
|
||||||
func (m *BeginExecuteBatchResponse) GetError() *vtrpc.RPCError {
|
func (m *BeginExecuteBatchResponse) GetError() *vtrpc.RPCError {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1067,7 +1112,7 @@ type SplitQueryRequest struct {
|
||||||
func (m *SplitQueryRequest) Reset() { *m = SplitQueryRequest{} }
|
func (m *SplitQueryRequest) Reset() { *m = SplitQueryRequest{} }
|
||||||
func (m *SplitQueryRequest) String() string { return proto.CompactTextString(m) }
|
func (m *SplitQueryRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*SplitQueryRequest) ProtoMessage() {}
|
func (*SplitQueryRequest) ProtoMessage() {}
|
||||||
func (*SplitQueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
|
func (*SplitQueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
|
||||||
|
|
||||||
func (m *SplitQueryRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *SplitQueryRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1108,7 +1153,7 @@ type QuerySplit struct {
|
||||||
func (m *QuerySplit) Reset() { *m = QuerySplit{} }
|
func (m *QuerySplit) Reset() { *m = QuerySplit{} }
|
||||||
func (m *QuerySplit) String() string { return proto.CompactTextString(m) }
|
func (m *QuerySplit) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QuerySplit) ProtoMessage() {}
|
func (*QuerySplit) ProtoMessage() {}
|
||||||
func (*QuerySplit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
|
func (*QuerySplit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
|
||||||
|
|
||||||
func (m *QuerySplit) GetQuery() *BoundQuery {
|
func (m *QuerySplit) GetQuery() *BoundQuery {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1126,7 +1171,7 @@ type SplitQueryResponse struct {
|
||||||
func (m *SplitQueryResponse) Reset() { *m = SplitQueryResponse{} }
|
func (m *SplitQueryResponse) Reset() { *m = SplitQueryResponse{} }
|
||||||
func (m *SplitQueryResponse) String() string { return proto.CompactTextString(m) }
|
func (m *SplitQueryResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*SplitQueryResponse) ProtoMessage() {}
|
func (*SplitQueryResponse) ProtoMessage() {}
|
||||||
func (*SplitQueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
|
func (*SplitQueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
|
||||||
|
|
||||||
func (m *SplitQueryResponse) GetQueries() []*QuerySplit {
|
func (m *SplitQueryResponse) GetQueries() []*QuerySplit {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1142,7 +1187,7 @@ type StreamHealthRequest struct {
|
||||||
func (m *StreamHealthRequest) Reset() { *m = StreamHealthRequest{} }
|
func (m *StreamHealthRequest) Reset() { *m = StreamHealthRequest{} }
|
||||||
func (m *StreamHealthRequest) String() string { return proto.CompactTextString(m) }
|
func (m *StreamHealthRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamHealthRequest) ProtoMessage() {}
|
func (*StreamHealthRequest) ProtoMessage() {}
|
||||||
func (*StreamHealthRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
|
func (*StreamHealthRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
|
||||||
|
|
||||||
// RealtimeStats contains information about the tablet status
|
// RealtimeStats contains information about the tablet status
|
||||||
type RealtimeStats struct {
|
type RealtimeStats struct {
|
||||||
|
@ -1178,7 +1223,7 @@ type RealtimeStats struct {
|
||||||
func (m *RealtimeStats) Reset() { *m = RealtimeStats{} }
|
func (m *RealtimeStats) Reset() { *m = RealtimeStats{} }
|
||||||
func (m *RealtimeStats) String() string { return proto.CompactTextString(m) }
|
func (m *RealtimeStats) String() string { return proto.CompactTextString(m) }
|
||||||
func (*RealtimeStats) ProtoMessage() {}
|
func (*RealtimeStats) ProtoMessage() {}
|
||||||
func (*RealtimeStats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
|
func (*RealtimeStats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
|
||||||
|
|
||||||
// StreamHealthResponse is streamed by StreamHealth on a regular basis
|
// StreamHealthResponse is streamed by StreamHealth on a regular basis
|
||||||
type StreamHealthResponse struct {
|
type StreamHealthResponse struct {
|
||||||
|
@ -1202,7 +1247,7 @@ type StreamHealthResponse struct {
|
||||||
func (m *StreamHealthResponse) Reset() { *m = StreamHealthResponse{} }
|
func (m *StreamHealthResponse) Reset() { *m = StreamHealthResponse{} }
|
||||||
func (m *StreamHealthResponse) String() string { return proto.CompactTextString(m) }
|
func (m *StreamHealthResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*StreamHealthResponse) ProtoMessage() {}
|
func (*StreamHealthResponse) ProtoMessage() {}
|
||||||
func (*StreamHealthResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
|
func (*StreamHealthResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
|
||||||
|
|
||||||
func (m *StreamHealthResponse) GetTarget() *Target {
|
func (m *StreamHealthResponse) GetTarget() *Target {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1236,7 +1281,7 @@ type UpdateStreamRequest struct {
|
||||||
func (m *UpdateStreamRequest) Reset() { *m = UpdateStreamRequest{} }
|
func (m *UpdateStreamRequest) Reset() { *m = UpdateStreamRequest{} }
|
||||||
func (m *UpdateStreamRequest) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateStreamRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateStreamRequest) ProtoMessage() {}
|
func (*UpdateStreamRequest) ProtoMessage() {}
|
||||||
func (*UpdateStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
|
func (*UpdateStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
|
||||||
|
|
||||||
func (m *UpdateStreamRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
func (m *UpdateStreamRequest) GetEffectiveCallerId() *vtrpc.CallerID {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1267,7 +1312,7 @@ type UpdateStreamResponse struct {
|
||||||
func (m *UpdateStreamResponse) Reset() { *m = UpdateStreamResponse{} }
|
func (m *UpdateStreamResponse) Reset() { *m = UpdateStreamResponse{} }
|
||||||
func (m *UpdateStreamResponse) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateStreamResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateStreamResponse) ProtoMessage() {}
|
func (*UpdateStreamResponse) ProtoMessage() {}
|
||||||
func (*UpdateStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
|
func (*UpdateStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} }
|
||||||
|
|
||||||
func (m *UpdateStreamResponse) GetEvent() *StreamEvent {
|
func (m *UpdateStreamResponse) GetEvent() *StreamEvent {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -1286,6 +1331,7 @@ func init() {
|
||||||
proto.RegisterType((*ExecuteOptions)(nil), "query.ExecuteOptions")
|
proto.RegisterType((*ExecuteOptions)(nil), "query.ExecuteOptions")
|
||||||
proto.RegisterType((*Field)(nil), "query.Field")
|
proto.RegisterType((*Field)(nil), "query.Field")
|
||||||
proto.RegisterType((*Row)(nil), "query.Row")
|
proto.RegisterType((*Row)(nil), "query.Row")
|
||||||
|
proto.RegisterType((*ResultExtras)(nil), "query.ResultExtras")
|
||||||
proto.RegisterType((*QueryResult)(nil), "query.QueryResult")
|
proto.RegisterType((*QueryResult)(nil), "query.QueryResult")
|
||||||
proto.RegisterType((*StreamEvent)(nil), "query.StreamEvent")
|
proto.RegisterType((*StreamEvent)(nil), "query.StreamEvent")
|
||||||
proto.RegisterType((*StreamEvent_Statement)(nil), "query.StreamEvent.Statement")
|
proto.RegisterType((*StreamEvent_Statement)(nil), "query.StreamEvent.Statement")
|
||||||
|
@ -1322,129 +1368,134 @@ func init() {
|
||||||
func init() { proto.RegisterFile("query.proto", fileDescriptor0) }
|
func init() { proto.RegisterFile("query.proto", fileDescriptor0) }
|
||||||
|
|
||||||
var fileDescriptor0 = []byte{
|
var fileDescriptor0 = []byte{
|
||||||
// 1982 bytes of a gzipped FileDescriptorProto
|
// 2056 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x59, 0x7b, 0x6f, 0xdb, 0xd6,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x59, 0x5b, 0x6f, 0x1b, 0xc7,
|
||||||
0x15, 0x0f, 0xa9, 0x87, 0xa5, 0x23, 0xcb, 0xb9, 0xbe, 0x72, 0x36, 0xcd, 0xcd, 0xd6, 0x8c, 0x6d,
|
0x15, 0xf6, 0x2e, 0xef, 0x87, 0xa2, 0x3c, 0x1a, 0xca, 0x2d, 0xab, 0xb8, 0x8d, 0xbb, 0x89, 0x13,
|
||||||
0x5a, 0x2f, 0x0d, 0xb4, 0x4c, 0xf1, 0xbc, 0xa0, 0xeb, 0xb6, 0x48, 0xb6, 0x9c, 0x0a, 0x95, 0x65,
|
0xd5, 0x36, 0x58, 0x97, 0x56, 0x5d, 0x23, 0x4d, 0x5b, 0x93, 0x12, 0xe5, 0x10, 0xa1, 0x68, 0x7a,
|
||||||
0xe5, 0x8a, 0x32, 0x96, 0x61, 0x00, 0x41, 0x4b, 0x37, 0x32, 0x61, 0x8a, 0xa4, 0xc9, 0x4b, 0x3b,
|
0xb8, 0x14, 0xea, 0x22, 0xc0, 0x62, 0x45, 0x8e, 0xa4, 0x85, 0x96, 0xbb, 0xab, 0xdd, 0x59, 0xc9,
|
||||||
0xfa, 0xcf, 0xeb, 0xde, 0xef, 0x0e, 0x5b, 0xd7, 0x3d, 0x80, 0x6e, 0xc0, 0x3e, 0xc7, 0x80, 0x61,
|
0x7c, 0x53, 0xd3, 0xfb, 0x3d, 0x45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, 0x7b, 0xbc, 0x06, 0xb9, 0xe0, 0xc8, 0xf4, 0x47, 0x55, 0x55,
|
0x8a, 0xb2, 0x5e, 0x22, 0xc9, 0x1e, 0xaf, 0x42, 0x2e, 0x38, 0x34, 0xfd, 0x71, 0x4d, 0x15, 0x8c,
|
||||||
0x30, 0xa2, 0x0d, 0xfe, 0x32, 0x94, 0x98, 0x79, 0x68, 0x53, 0x66, 0xb0, 0xa9, 0x47, 0xab, 0x99,
|
0x68, 0x83, 0xbf, 0x08, 0x65, 0x66, 0xee, 0xd9, 0x94, 0x19, 0x6c, 0xea, 0xd1, 0x5a, 0xe6, 0x8a,
|
||||||
0x6b, 0xca, 0xc6, 0x4a, 0x7d, 0xad, 0x96, 0x98, 0xd3, 0x05, 0x53, 0x9f, 0x7a, 0x94, 0x00, 0x4b,
|
0xb2, 0xbe, 0xdc, 0x58, 0xad, 0x27, 0xea, 0x74, 0xc1, 0xd4, 0xa7, 0x1e, 0x25, 0xc0, 0x92, 0xb5,
|
||||||
0xd6, 0xda, 0x4d, 0x58, 0x39, 0xd0, 0xef, 0x99, 0x8c, 0x6e, 0x9b, 0xb6, 0x4d, 0xfd, 0xf6, 0x0e,
|
0x76, 0x03, 0x96, 0x77, 0xf5, 0x7b, 0x26, 0xa3, 0x9b, 0xa6, 0x6d, 0x53, 0xbf, 0xb3, 0xc5, 0x55,
|
||||||
0x37, 0x1d, 0x06, 0xd4, 0x77, 0xcc, 0x49, 0x62, 0x3a, 0xde, 0x6b, 0xdf, 0x06, 0x68, 0x9d, 0x52,
|
0x87, 0x01, 0xf5, 0x1d, 0x73, 0x92, 0xa8, 0x8e, 0xf7, 0xda, 0x5b, 0x00, 0xed, 0x13, 0xea, 0x30,
|
||||||
0x87, 0xe9, 0xee, 0x31, 0x75, 0xf0, 0x55, 0x28, 0x32, 0x6b, 0x42, 0x03, 0x66, 0x4e, 0x3c, 0x21,
|
0xdd, 0x3d, 0xa2, 0x0e, 0xbe, 0x0c, 0x25, 0x66, 0x4d, 0x68, 0xc0, 0xcc, 0x89, 0x27, 0xa0, 0x19,
|
||||||
0x9a, 0x21, 0x33, 0xc2, 0x7b, 0xb8, 0xb9, 0x0e, 0x05, 0xcf, 0x0d, 0x2c, 0x66, 0xb9, 0x8e, 0xf0,
|
0x32, 0x23, 0x3c, 0xc1, 0xcc, 0x35, 0x28, 0x7a, 0x6e, 0x60, 0x31, 0xcb, 0x75, 0x84, 0x8d, 0x25,
|
||||||
0xb1, 0x48, 0x92, 0xbd, 0xf6, 0x75, 0xc8, 0x1d, 0x98, 0x76, 0x48, 0xf1, 0xf3, 0x90, 0x15, 0x41,
|
0x92, 0xec, 0xb5, 0xaf, 0x42, 0x6e, 0xd7, 0xb4, 0x43, 0x8a, 0x5f, 0x84, 0xac, 0x70, 0x42, 0x11,
|
||||||
0x28, 0x22, 0x88, 0x52, 0x2d, 0xca, 0xa3, 0xf0, 0x5d, 0x30, 0xb8, 0xee, 0x53, 0x2e, 0x29, 0x74,
|
0x4e, 0x94, 0xeb, 0x51, 0x1c, 0x85, 0xed, 0x82, 0xc1, 0x65, 0x9f, 0x70, 0xa4, 0x90, 0xbd, 0x44,
|
||||||
0x2f, 0x93, 0x68, 0xa3, 0x1d, 0xc3, 0x72, 0xd3, 0x72, 0x46, 0x07, 0xa6, 0x6f, 0xf1, 0x00, 0x3f,
|
0xa2, 0x8d, 0x76, 0x04, 0x4b, 0x2d, 0xcb, 0x19, 0xef, 0x9a, 0xbe, 0xc5, 0x1d, 0xfc, 0x90, 0x62,
|
||||||
0xa4, 0x1a, 0xfc, 0x22, 0xe4, 0xc5, 0x22, 0xa8, 0x66, 0xae, 0x65, 0x36, 0x4a, 0xf5, 0x65, 0x79,
|
0xf0, 0xcb, 0x90, 0x17, 0x8b, 0xa0, 0x96, 0xb9, 0x92, 0x59, 0x2f, 0x37, 0x96, 0xe4, 0x41, 0x61,
|
||||||
0x50, 0xf8, 0x46, 0x24, 0x4f, 0xfb, 0xbb, 0x02, 0xd0, 0x74, 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x23, 0x3a, 0x0a, 0x19, 0xbd, 0xef, 0xf1,
|
||||||
0x1c, 0x82, 0x00, 0xd7, 0xa0, 0x42, 0x1f, 0x0d, 0xed, 0x70, 0x44, 0x8d, 0x87, 0x16, 0xb5, 0x47,
|
0x1c, 0x04, 0xb8, 0x0e, 0x55, 0xfa, 0x68, 0x64, 0x87, 0x63, 0x6a, 0xec, 0x5b, 0xd4, 0x1e, 0x1b,
|
||||||
0x06, 0xc7, 0x3d, 0x10, 0x26, 0x0a, 0x64, 0x55, 0xb2, 0x76, 0x39, 0xa7, 0xcb, 0x19, 0xda, 0x6b,
|
0x3c, 0xf1, 0x81, 0xd0, 0x51, 0x24, 0x2b, 0x92, 0xb5, 0xcd, 0x39, 0x3d, 0xce, 0xe0, 0x78, 0xcb,
|
||||||
0x90, 0x13, 0x3b, 0x8c, 0x21, 0x9b, 0x2a, 0x19, 0xb1, 0x4e, 0x00, 0x50, 0xdf, 0x03, 0x00, 0xed,
|
0x89, 0xf0, 0x94, 0x97, 0x86, 0xc1, 0x78, 0x6d, 0x08, 0xfd, 0x45, 0xb2, 0x22, 0x59, 0xa9, 0xa2,
|
||||||
0x2b, 0x90, 0x21, 0xee, 0x19, 0xae, 0xc2, 0x92, 0x4d, 0x9d, 0x31, 0x3b, 0xe2, 0x86, 0x32, 0x1b,
|
0x69, 0x42, 0x75, 0xe4, 0x4e, 0x3c, 0xd3, 0x9f, 0xc7, 0x67, 0x84, 0xbd, 0x2b, 0xd2, 0xde, 0x19,
|
||||||
0x98, 0xc4, 0x5b, 0xfc, 0xa9, 0x04, 0x8b, 0x08, 0xa2, 0x38, 0xfb, 0x6f, 0x2b, 0x50, 0x12, 0xb9,
|
0x9e, 0xac, 0x48, 0xf4, 0x8c, 0xa4, 0xbd, 0x0e, 0x39, 0x61, 0x00, 0xc6, 0x90, 0x4d, 0x95, 0xa9,
|
||||||
0x23, 0x34, 0x08, 0x6d, 0xc6, 0x31, 0x13, 0xee, 0x46, 0x0a, 0x66, 0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 0x4e,
|
0x4d, 0x26, 0x74, 0x6c, 0x99, 0x2c, 0x2d, 0x20, 0x4a, 0xd8, 0xa5, 0x78, 0x7c, 0xce, 0x5d, 0x33,
|
||||||
0x32, 0x18, 0x78, 0xae, 0x13, 0x50, 0x7c, 0x03, 0xf2, 0xbe, 0x68, 0x45, 0x99, 0x35, 0x2c, 0x55,
|
0x64, 0x25, 0x39, 0x91, 0x88, 0xb9, 0x0a, 0x79, 0x26, 0xae, 0x3f, 0x39, 0x0d, 0x2a, 0x71, 0xf3,
|
||||||
0xa4, 0x9a, 0x94, 0x48, 0x09, 0xed, 0xbf, 0x2a, 0x54, 0xe4, 0xf9, 0xa6, 0xc9, 0x86, 0x47, 0xcf,
|
0x0a, 0x22, 0x91, 0x4c, 0xfc, 0x2a, 0x44, 0x77, 0x69, 0x2d, 0x3b, 0x57, 0x10, 0xb3, 0x79, 0x4a,
|
||||||
0x28, 0x0c, 0xaf, 0xc0, 0x12, 0xa7, 0x5b, 0x49, 0xc9, 0x2e, 0x00, 0x22, 0x96, 0xe0, 0x50, 0x98,
|
0x22, 0x3e, 0xbe, 0x0a, 0xcb, 0xcc, 0x37, 0x9d, 0xc0, 0x1c, 0xf1, 0xd1, 0xc6, 0x2d, 0xca, 0x89,
|
||||||
0x81, 0x91, 0xca, 0xbb, 0x80, 0xa2, 0x40, 0xca, 0x66, 0xa0, 0xcf, 0x88, 0x0b, 0x10, 0xcb, 0x3f,
|
0x4b, 0xaa, 0x92, 0xa2, 0x76, 0xc6, 0xf8, 0xf3, 0x50, 0x70, 0xa3, 0xe1, 0x57, 0xcb, 0xcf, 0x59,
|
||||||
0x01, 0xb1, 0xa5, 0xa7, 0x42, 0x6c, 0x07, 0xd6, 0xe6, 0x33, 0x2e, 0x61, 0xbb, 0x09, 0x4b, 0x11,
|
0x3c, 0x3f, 0x19, 0x49, 0x8c, 0xd2, 0xbe, 0x02, 0x17, 0x93, 0x08, 0x06, 0x9e, 0xeb, 0x04, 0x14,
|
||||||
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||
0xcd, 0xe7, 0xa0, 0xe8, 0xbb, 0x67, 0x32, 0x51, 0xaa, 0x88, 0xbd, 0xe0, 0xbb, 0x67, 0x22, 0x4d,
|
0xb5, 0xf3, 0xe1, 0xaf, 0x37, 0x63, 0x24, 0x99, 0x1d, 0xc2, 0xd7, 0x01, 0x87, 0x01, 0x35, 0x22,
|
||||||
0x5a, 0x03, 0x70, 0x3a, 0x30, 0x59, 0xea, 0xa9, 0x6e, 0x54, 0xe6, 0xba, 0x71, 0x66, 0x3f, 0xe9,
|
0xe3, 0x22, 0xa5, 0x27, 0x8d, 0x1a, 0x88, 0xfa, 0xbc, 0x18, 0x06, 0x74, 0x26, 0x66, 0xb7, 0xa1,
|
||||||
0x46, 0xed, 0x0a, 0x54, 0xa2, 0xf7, 0xad, 0xd7, 0xa9, 0x69, 0xb3, 0x78, 0x00, 0x69, 0x7f, 0x51,
|
0xdd, 0x80, 0x52, 0x22, 0x04, 0x23, 0x58, 0x6a, 0x3f, 0x18, 0x36, 0xbb, 0xc6, 0xa0, 0xdf, 0xed,
|
||||||
0xa1, 0x4c, 0x38, 0xc5, 0x9a, 0x50, 0xfe, 0x71, 0x1b, 0x70, 0x58, 0x8f, 0x84, 0x88, 0x31, 0xeb,
|
0xe8, 0x03, 0x74, 0x01, 0x57, 0xa0, 0xb4, 0x3d, 0xec, 0x76, 0x8d, 0xc1, 0x66, 0xb3, 0x87, 0x14,
|
||||||
0xa3, 0x22, 0x29, 0x45, 0x34, 0xd1, 0x43, 0xb8, 0x0e, 0x57, 0x02, 0x3a, 0x74, 0x9d, 0x51, 0x60,
|
0x8d, 0x00, 0x88, 0x83, 0x42, 0xc4, 0x2c, 0x9a, 0xca, 0x53, 0xa2, 0xf9, 0x02, 0x94, 0x7c, 0xf7,
|
||||||
0x1c, 0xd2, 0x23, 0xcb, 0x19, 0x19, 0x13, 0x33, 0x60, 0xd4, 0x17, 0x7e, 0x97, 0x49, 0x45, 0x32,
|
0x54, 0x06, 0x4a, 0x15,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0x00, 0xff, 0xff,
|
||||||
|
0x49, 0x1d, 0xea, 0xf8, 0xd1, 0x19, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,12 @@ var TestVTGateCallerID = &querypb.VTGateCallerID{
|
||||||
|
|
||||||
var TestExecuteOptions = &querypb.ExecuteOptions{
|
var TestExecuteOptions = &querypb.ExecuteOptions{
|
||||||
ExcludeFieldNames: true,
|
ExcludeFieldNames: true,
|
||||||
|
IncludeEventToken: true,
|
||||||
|
CompareEventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 9876,
|
||||||
|
Shard: "ssss",
|
||||||
|
Position: "pppp",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const TestAsTransaction bool = true
|
const TestAsTransaction bool = true
|
||||||
|
@ -178,6 +184,14 @@ var ExecuteQueryResult = sqltypes.Result{
|
||||||
sqltypes.MakeTrusted(sqltypes.Char, []byte("row2 value2")),
|
sqltypes.MakeTrusted(sqltypes.Char, []byte("row2 value2")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 456321,
|
||||||
|
Shard: "test_shard",
|
||||||
|
Position: "test_position",
|
||||||
|
},
|
||||||
|
Fresher: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute is part of the queryservice.QueryService interface
|
// Execute is part of the queryservice.QueryService interface
|
||||||
|
@ -307,6 +321,14 @@ var ExecuteBatchQueryResultList = []sqltypes.Result{
|
||||||
sqltypes.MakeTrusted(sqltypes.Int8, []byte("2")),
|
sqltypes.MakeTrusted(sqltypes.Int8, []byte("2")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Extras: &querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 456322,
|
||||||
|
Shard: "test_shard2",
|
||||||
|
Position: "test_position2",
|
||||||
|
},
|
||||||
|
Fresher: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Fields: []*querypb.Field{
|
Fields: []*querypb.Field{
|
||||||
|
|
|
@ -23,6 +23,7 @@ import (
|
||||||
"github.com/youtube/vitess/go/sync2"
|
"github.com/youtube/vitess/go/sync2"
|
||||||
"github.com/youtube/vitess/go/tb"
|
"github.com/youtube/vitess/go/tb"
|
||||||
"github.com/youtube/vitess/go/vt/binlog"
|
"github.com/youtube/vitess/go/vt/binlog"
|
||||||
|
"github.com/youtube/vitess/go/vt/binlog/eventtoken"
|
||||||
"github.com/youtube/vitess/go/vt/dbconfigs"
|
"github.com/youtube/vitess/go/vt/dbconfigs"
|
||||||
"github.com/youtube/vitess/go/vt/dbconnpool"
|
"github.com/youtube/vitess/go/vt/dbconnpool"
|
||||||
"github.com/youtube/vitess/go/vt/mysqlctl"
|
"github.com/youtube/vitess/go/vt/mysqlctl"
|
||||||
|
@ -776,16 +777,62 @@ func (tsv *TabletServer) Execute(ctx context.Context, target *querypb.Target, sq
|
||||||
logStats: logStats,
|
logStats: logStats,
|
||||||
qe: tsv.qe,
|
qe: tsv.qe,
|
||||||
}
|
}
|
||||||
|
extras := tsv.computeExtras(options)
|
||||||
result, err = qre.Execute()
|
result, err = qre.Execute()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, tsv.handleExecErrorNoPanic(sql, bindVariables, err, logStats)
|
return nil, tsv.handleExecErrorNoPanic(sql, bindVariables, err, logStats)
|
||||||
}
|
}
|
||||||
|
result.Extras = extras
|
||||||
if options != nil && options.ExcludeFieldNames {
|
if options != nil && options.ExcludeFieldNames {
|
||||||
result = result.StripFieldNames()
|
result = result.StripFieldNames()
|
||||||
}
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// computeExtras returns the ResultExtras to include with the result.
|
||||||
|
func (tsv *TabletServer) computeExtras(options *querypb.ExecuteOptions) *querypb.ResultExtras {
|
||||||
|
if options == nil {
|
||||||
|
// No options passed in.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if !options.IncludeEventToken && options.CompareEventToken == nil {
|
||||||
|
// The flags that make extras exist are not there.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Grab the current EventToken.
|
||||||
|
tsv.eventTokenMutex.RLock()
|
||||||
|
et := tsv.eventToken
|
||||||
|
tsv.eventTokenMutex.RUnlock()
|
||||||
|
if et == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var extras *querypb.ResultExtras
|
||||||
|
|
||||||
|
// See if we need to fill in EventToken.
|
||||||
|
if options.IncludeEventToken {
|
||||||
|
extras = &querypb.ResultExtras{
|
||||||
|
EventToken: et,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// See if we need to compare.
|
||||||
|
if options.CompareEventToken != nil {
|
||||||
|
if eventtoken.Fresher(et, options.CompareEventToken) {
|
||||||
|
if extras == nil {
|
||||||
|
extras = &querypb.ResultExtras{
|
||||||
|
Fresher: true,
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
extras.Fresher = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return extras
|
||||||
|
}
|
||||||
|
|
||||||
// StreamExecute executes the query and streams the result.
|
// StreamExecute executes the query and streams the result.
|
||||||
// The first QueryResult will have Fields set (and Rows nil).
|
// The first QueryResult will have Fields set (and Rows nil).
|
||||||
// The subsequent QueryResult will have Rows set (and Fields nil).
|
// The subsequent QueryResult will have Rows set (and Fields nil).
|
||||||
|
|
|
@ -16,6 +16,7 @@ import (
|
||||||
|
|
||||||
"github.com/youtube/vitess/go/sqltypes"
|
"github.com/youtube/vitess/go/sqltypes"
|
||||||
"github.com/youtube/vitess/go/stats"
|
"github.com/youtube/vitess/go/stats"
|
||||||
|
"github.com/youtube/vitess/go/vt/binlog/eventtoken"
|
||||||
"github.com/youtube/vitess/go/vt/concurrency"
|
"github.com/youtube/vitess/go/vt/concurrency"
|
||||||
"github.com/youtube/vitess/go/vt/discovery"
|
"github.com/youtube/vitess/go/vt/discovery"
|
||||||
"github.com/youtube/vitess/go/vt/tabletserver/querytypes"
|
"github.com/youtube/vitess/go/vt/tabletserver/querytypes"
|
||||||
|
@ -955,6 +956,31 @@ func appendResult(qr, innerqr *sqltypes.Result) {
|
||||||
if innerqr.InsertID != 0 {
|
if innerqr.InsertID != 0 {
|
||||||
qr.InsertID = innerqr.InsertID
|
qr.InsertID = innerqr.InsertID
|
||||||
}
|
}
|
||||||
|
if len(qr.Rows) == 0 {
|
||||||
|
// we haven't gotten any result yet, just save the new extras.
|
||||||
|
qr.Extras = innerqr.Extras
|
||||||
|
} else {
|
||||||
|
// Merge the EventTokens / Fresher flags within Extras.
|
||||||
|
if innerqr.Extras == nil {
|
||||||
|
// We didn't get any from innerq. Have to clear any
|
||||||
|
// we'd have gotten already.
|
||||||
|
if qr.Extras != nil {
|
||||||
|
qr.Extras.EventToken = nil
|
||||||
|
qr.Extras.Fresher = false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// We may have gotten an EventToken from
|
||||||
|
// innerqr. If we also got one earlier, merge
|
||||||
|
// it. If we didn't get one earlier, we
|
||||||
|
// discard the new one.
|
||||||
|
if qr.Extras != nil {
|
||||||
|
// Note if any of the two is nil, we get nil.
|
||||||
|
qr.Extras.EventToken = eventtoken.Minimum(qr.Extras.EventToken, innerqr.Extras.EventToken)
|
||||||
|
|
||||||
|
qr.Extras.Fresher = qr.Extras.Fresher && innerqr.Extras.Fresher
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
qr.Rows = append(qr.Rows, innerqr.Rows...)
|
qr.Rows = append(qr.Rows, innerqr.Rows...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1194,8 +1194,9 @@ func testStreamExecute(t *testing.T, conn *vtgateconn.VTGateConn) {
|
||||||
wantResult := *execCase.result
|
wantResult := *execCase.result
|
||||||
wantResult.RowsAffected = 0
|
wantResult.RowsAffected = 0
|
||||||
wantResult.InsertID = 0
|
wantResult.InsertID = 0
|
||||||
|
wantResult.Extras = nil
|
||||||
if !reflect.DeepEqual(qr, wantResult) {
|
if !reflect.DeepEqual(qr, wantResult) {
|
||||||
t.Errorf("Unexpected result from Execute: got %+v want %+v", qr, wantResult)
|
t.Errorf("Unexpected result from StreamExecute: got %+v want %+v", qr, wantResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err = conn.StreamExecute(ctx, "none", nil, topodatapb.TabletType_RDONLY, testExecuteOptions)
|
stream, err = conn.StreamExecute(ctx, "none", nil, topodatapb.TabletType_RDONLY, testExecuteOptions)
|
||||||
|
@ -1274,8 +1275,9 @@ func testStreamExecuteShards(t *testing.T, conn *vtgateconn.VTGateConn) {
|
||||||
wantResult := *execCase.result
|
wantResult := *execCase.result
|
||||||
wantResult.RowsAffected = 0
|
wantResult.RowsAffected = 0
|
||||||
wantResult.InsertID = 0
|
wantResult.InsertID = 0
|
||||||
|
wantResult.Extras = nil
|
||||||
if !reflect.DeepEqual(qr, wantResult) {
|
if !reflect.DeepEqual(qr, wantResult) {
|
||||||
t.Errorf("Unexpected result from Execute: got %+v want %+v", qr, wantResult)
|
t.Errorf("Unexpected result from StreamExecuteShards: got %+v want %+v", qr, wantResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err = conn.StreamExecuteShards(ctx, "none", "", []string{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
stream, err = conn.StreamExecuteShards(ctx, "none", "", []string{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
||||||
|
@ -1354,8 +1356,9 @@ func testStreamExecuteKeyRanges(t *testing.T, conn *vtgateconn.VTGateConn) {
|
||||||
wantResult := *execCase.result
|
wantResult := *execCase.result
|
||||||
wantResult.RowsAffected = 0
|
wantResult.RowsAffected = 0
|
||||||
wantResult.InsertID = 0
|
wantResult.InsertID = 0
|
||||||
|
wantResult.Extras = nil
|
||||||
if !reflect.DeepEqual(qr, wantResult) {
|
if !reflect.DeepEqual(qr, wantResult) {
|
||||||
t.Errorf("Unexpected result from Execute: got %+v want %+v", qr, wantResult)
|
t.Errorf("Unexpected result from StreamExecuteKeyRanges: got %+v want %+v", qr, wantResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err = conn.StreamExecuteKeyRanges(ctx, "none", "", []*topodatapb.KeyRange{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
stream, err = conn.StreamExecuteKeyRanges(ctx, "none", "", []*topodatapb.KeyRange{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
||||||
|
@ -1434,8 +1437,9 @@ func testStreamExecuteKeyspaceIds(t *testing.T, conn *vtgateconn.VTGateConn) {
|
||||||
wantResult := *execCase.result
|
wantResult := *execCase.result
|
||||||
wantResult.RowsAffected = 0
|
wantResult.RowsAffected = 0
|
||||||
wantResult.InsertID = 0
|
wantResult.InsertID = 0
|
||||||
|
wantResult.Extras = nil
|
||||||
if !reflect.DeepEqual(qr, wantResult) {
|
if !reflect.DeepEqual(qr, wantResult) {
|
||||||
t.Errorf("Unexpected result from Execute: got %+v want %+v", qr, wantResult)
|
t.Errorf("Unexpected result from StreamExecuteKeyspaceIds: got %+v want %+v", qr, wantResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err = conn.StreamExecuteKeyspaceIds(ctx, "none", "", [][]byte{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
stream, err = conn.StreamExecuteKeyspaceIds(ctx, "none", "", [][]byte{}, nil, topodatapb.TabletType_REPLICA, testExecuteOptions)
|
||||||
|
@ -1872,8 +1876,9 @@ func testUpdateStream(t *testing.T, conn *vtgateconn.VTGateConn) {
|
||||||
sqr := sqltypes.Proto3ToResult(&qr)
|
sqr := sqltypes.Proto3ToResult(&qr)
|
||||||
wantResult := *execCase.result
|
wantResult := *execCase.result
|
||||||
wantResult.InsertID = 0
|
wantResult.InsertID = 0
|
||||||
|
wantResult.Extras = nil
|
||||||
if !reflect.DeepEqual(sqr, &wantResult) {
|
if !reflect.DeepEqual(sqr, &wantResult) {
|
||||||
t.Errorf("Unexpected result from Execute: got %+v want %+v", sqr, wantResult)
|
t.Errorf("Unexpected result from UpdateStream: got %+v want %+v", sqr, wantResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err = conn.UpdateStream(ctx, "none", nil, topodatapb.TabletType_RDONLY, 0, nil)
|
stream, err = conn.UpdateStream(ctx, "none", nil, topodatapb.TabletType_RDONLY, 0, nil)
|
||||||
|
@ -1934,6 +1939,12 @@ var testCallerID = &vtrpcpb.CallerID{
|
||||||
|
|
||||||
var testExecuteOptions = &querypb.ExecuteOptions{
|
var testExecuteOptions = &querypb.ExecuteOptions{
|
||||||
ExcludeFieldNames: true,
|
ExcludeFieldNames: true,
|
||||||
|
IncludeEventToken: true,
|
||||||
|
CompareEventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 135,
|
||||||
|
Shard: "shrd",
|
||||||
|
Position: "pstn",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var execMap = map[string]struct {
|
var execMap = map[string]struct {
|
||||||
|
@ -2321,6 +2332,15 @@ var execMap = map[string]struct {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var extras = querypb.ResultExtras{
|
||||||
|
EventToken: &querypb.EventToken{
|
||||||
|
Timestamp: 123,
|
||||||
|
Shard: "sh",
|
||||||
|
Position: "po",
|
||||||
|
},
|
||||||
|
Fresher: true,
|
||||||
|
}
|
||||||
|
|
||||||
var result1 = sqltypes.Result{
|
var result1 = sqltypes.Result{
|
||||||
Fields: []*querypb.Field{
|
Fields: []*querypb.Field{
|
||||||
{
|
{
|
||||||
|
@ -2344,6 +2364,7 @@ var result1 = sqltypes.Result{
|
||||||
sqltypes.MakeTrusted(sqltypes.Int32, []byte("3")),
|
sqltypes.MakeTrusted(sqltypes.Int32, []byte("3")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Extras: &extras,
|
||||||
}
|
}
|
||||||
|
|
||||||
// streamResultFields is only the fields, sent as the first packet
|
// streamResultFields is only the fields, sent as the first packet
|
||||||
|
|
|
@ -180,6 +180,14 @@ message ExecuteOptions {
|
||||||
// This is an optimization for high-QPS queries where the client knows
|
// This is an optimization for high-QPS queries where the client knows
|
||||||
// what it's getting.
|
// what it's getting.
|
||||||
bool exclude_field_names = 1;
|
bool exclude_field_names = 1;
|
||||||
|
|
||||||
|
// If set, we will try to include an EventToken with the responses.
|
||||||
|
bool include_event_token = 2;
|
||||||
|
|
||||||
|
// If set, the fresher field may be set as a result comparison to this token.
|
||||||
|
// This is a shortcut so the application doesn't need to care about
|
||||||
|
// comparing EventTokens.
|
||||||
|
EventToken compare_event_token = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Field describes a single column returned by a query
|
// Field describes a single column returned by a query
|
||||||
|
@ -202,6 +210,18 @@ message Row {
|
||||||
bytes values = 2;
|
bytes values = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ResultExtras contains optional out-of-band information. Usually the
|
||||||
|
// extras are requested by adding ExecuteOptions flags.
|
||||||
|
message ResultExtras {
|
||||||
|
// event_token is populated if the include_event_token flag is set
|
||||||
|
// in ExecuteOptions.
|
||||||
|
EventToken event_token = 1;
|
||||||
|
|
||||||
|
// If set, it means the data returned with this result is fresher
|
||||||
|
// than the compare_token passed in the ExecuteOptions.
|
||||||
|
bool fresher = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// QueryResult is returned by Execute and ExecuteStream.
|
// QueryResult is returned by Execute and ExecuteStream.
|
||||||
//
|
//
|
||||||
// As returned by Execute, len(fields) is always equal to len(row)
|
// As returned by Execute, len(fields) is always equal to len(row)
|
||||||
|
@ -216,6 +236,7 @@ message QueryResult {
|
||||||
uint64 rows_affected = 2;
|
uint64 rows_affected = 2;
|
||||||
uint64 insert_id = 3;
|
uint64 insert_id = 3;
|
||||||
repeated Row rows = 4;
|
repeated Row rows = 4;
|
||||||
|
ResultExtras extras = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// StreamEvent describes a set of transformations that happened as a
|
// StreamEvent describes a set of transformations that happened as a
|
||||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -369,6 +369,96 @@ class TestUpdateStream(unittest.TestCase):
|
||||||
timeout = utils.wait_step(
|
timeout = utils.wait_step(
|
||||||
'EventTokenPosition must be up to date but got %s' % value, timeout)
|
'EventTokenPosition must be up to date but got %s' % value, timeout)
|
||||||
|
|
||||||
|
# With vttablet up to date, test a vttablet query returns the EventToken.
|
||||||
|
qr = replica_tablet.execute('select * from vt_insert_test',
|
||||||
|
execute_options='include_event_token:true ')
|
||||||
|
logging.debug('Got result: %s', qr)
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
|
# Same thing through vtgate
|
||||||
|
qr = utils.vtgate.execute('select * from vt_insert_test',
|
||||||
|
tablet_type='replica',
|
||||||
|
execute_options='include_event_token:true ')
|
||||||
|
logging.debug('Got result: %s', qr)
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
|
# Make sure the compare_event_token flag works, by sending a very
|
||||||
|
# old timestamp, or a timestamp in the future.
|
||||||
|
qr = replica_tablet.execute(
|
||||||
|
'select * from vt_insert_test',
|
||||||
|
execute_options='compare_event_token: <timestamp:123 > ')
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('fresher', qr['extras'])
|
||||||
|
self.assertTrue(qr['extras']['fresher'])
|
||||||
|
|
||||||
|
future_timestamp = long(time.time()) + 100
|
||||||
|
qr = replica_tablet.execute(
|
||||||
|
'select * from vt_insert_test',
|
||||||
|
execute_options='compare_event_token: <timestamp:%d > ' %
|
||||||
|
future_timestamp)
|
||||||
|
self.assertTrue(qr['extras'] is None)
|
||||||
|
|
||||||
|
# Same thing through vtgate
|
||||||
|
qr = utils.vtgate.execute(
|
||||||
|
'select * from vt_insert_test', tablet_type='replica',
|
||||||
|
execute_options='compare_event_token: <timestamp:123 > ')
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('fresher', qr['extras'])
|
||||||
|
self.assertTrue(qr['extras']['fresher'])
|
||||||
|
|
||||||
|
future_timestamp = long(time.time()) + 100
|
||||||
|
qr = utils.vtgate.execute(
|
||||||
|
'select * from vt_insert_test', tablet_type='replica',
|
||||||
|
execute_options='compare_event_token: <timestamp:%d > ' %
|
||||||
|
future_timestamp)
|
||||||
|
self.assertTrue(qr['extras'] is None)
|
||||||
|
|
||||||
|
# Make sure the compare_event_token flag works, by sending a very
|
||||||
|
# old timestamp, or a timestamp in the future, when combined with
|
||||||
|
# include_event_token flag.
|
||||||
|
qr = replica_tablet.execute('select * from vt_insert_test',
|
||||||
|
execute_options='include_event_token:true '
|
||||||
|
'compare_event_token: <timestamp:123 > ')
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('fresher', qr['extras'])
|
||||||
|
self.assertTrue(qr['extras']['fresher'])
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
|
future_timestamp = long(time.time()) + 100
|
||||||
|
qr = replica_tablet.execute('select * from vt_insert_test',
|
||||||
|
execute_options='include_event_token:true '
|
||||||
|
'compare_event_token: <timestamp:%d > ' %
|
||||||
|
future_timestamp)
|
||||||
|
self.assertNotIn('fresher', qr['extras'])
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
|
# Same thing through vtgate
|
||||||
|
qr = utils.vtgate.execute('select * from vt_insert_test',
|
||||||
|
tablet_type='replica',
|
||||||
|
execute_options='include_event_token:true '
|
||||||
|
'compare_event_token: <timestamp:123 > ')
|
||||||
|
self.assertIn('extras', qr)
|
||||||
|
self.assertIn('fresher', qr['extras'])
|
||||||
|
self.assertTrue(qr['extras']['fresher'])
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
|
future_timestamp = long(time.time()) + 100
|
||||||
|
qr = utils.vtgate.execute('select * from vt_insert_test',
|
||||||
|
tablet_type='replica',
|
||||||
|
execute_options='include_event_token:true '
|
||||||
|
'compare_event_token: <timestamp:%d > ' %
|
||||||
|
future_timestamp)
|
||||||
|
self.assertNotIn('fresher', qr['extras'])
|
||||||
|
self.assertIn('event_token', qr['extras'])
|
||||||
|
self.assertEqual(qr['extras']['event_token']['position'], replica_position)
|
||||||
|
|
||||||
def test_update_stream_interrupt(self):
|
def test_update_stream_interrupt(self):
|
||||||
"""Checks that a running query is terminated on going non-serving."""
|
"""Checks that a running query is terminated on going non-serving."""
|
||||||
# Make sure the replica is replica type.
|
# Make sure the replica is replica type.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче