Skip to content

Commit

Permalink
fix test exepectation to gen4 plans
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Jul 17, 2023
1 parent 41028d9 commit 0d4259a
Show file tree
Hide file tree
Showing 29 changed files with 117 additions and 457 deletions.
14 changes: 0 additions & 14 deletions go/vt/vtgate/engine/cached_size.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 0 additions & 73 deletions go/vt/vtgate/engine/compare_utils.go

This file was deleted.

180 changes: 0 additions & 180 deletions go/vt/vtgate/engine/distinctV3.go

This file was deleted.

9 changes: 0 additions & 9 deletions go/vt/vtgate/engine/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,6 @@ func NewQueryInsert(opcode InsertOpcode, keyspace *vindexes.Keyspace, query stri
}
}

// NewSimpleInsert creates an Insert for a Table.
func NewSimpleInsert(opcode InsertOpcode, table *vindexes.Table, keyspace *vindexes.Keyspace) *Insert {
return &Insert{
Opcode: opcode,
Table: table,
Keyspace: keyspace,
}
}

// NewInsert creates a new Insert.
func NewInsert(
opcode InsertOpcode,
Expand Down
1 change: 0 additions & 1 deletion go/vt/vtgate/engine/primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type (
// if the max memory rows override directive is set to true
ExceedsMaxMemoryRows(numRows int) bool

// V3 functions.
Execute(ctx context.Context, method string, query string, bindVars map[string]*querypb.BindVariable, rollbackOnError bool, co vtgatepb.CommitOrder) (*sqltypes.Result, error)
AutocommitApproval() bool

Expand Down
12 changes: 0 additions & 12 deletions go/vt/vtgate/engine/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ type Route struct {
noTxNeeded
}

// NewSimpleRoute creates a Route with the bare minimum of parameters.
func NewSimpleRoute(opcode Opcode, keyspace *vindexes.Keyspace) *Route {
return &Route{
RoutingParameters: &RoutingParameters{
Opcode: opcode,
Keyspace: keyspace,
},
}
}

// NewRoute creates a Route.
func NewRoute(opcode Opcode, keyspace *vindexes.Keyspace, query, fieldQuery string) *Route {
return &Route{
Expand All @@ -120,8 +110,6 @@ type OrderByParams struct {
WeightStringCol int
Desc bool
StarColFixedIndex int
// v3 specific boolean. Used to also add weight strings originating from GroupBys to the Group by clause
FromGroupBy bool
// Collation ID for comparison using collation
CollationID collations.ID
}
Expand Down
1 change: 0 additions & 1 deletion go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,6 @@ func (e *Executor) prepare(ctx context.Context, safeSession *SafeSession, sql st
}

func (e *Executor) handlePrepare(ctx context.Context, safeSession *SafeSession, sql string, bindVars map[string]*querypb.BindVariable, logStats *logstats.LogStats) ([]*querypb.Field, error) {
// V3 mode.
query, comments := sqlparser.SplitMarginComments(sql)
vcursor, _ := newVCursorImpl(safeSession, comments, e, logStats, e.vm, e.VSchema(), e.resolver.resolver, e.serv, e.warnShardedOnly, e.pv)

Expand Down
Loading

0 comments on commit 0d4259a

Please sign in to comment.