Skip to content

Commit d60fe25

Browse files
committed
v3: revamp: address review comments
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
1 parent e603a16 commit d60fe25

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright 2018 The Vitess Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package planbuilder
18+
19+
// planBuilder is the top level type for building plans.
20+
// It contains the current builder tree, the symtab and
21+
// the jointab. It can create transient planBuilders due
22+
// to the recursive nature of SQL.
23+
type planBuilder struct {
24+
vschema ContextVSchema
25+
jt *jointab
26+
bldr builder
27+
st *symtab
28+
}
29+
30+
func newPlanBuilder(vschema ContextVSchema, jt *jointab) *planBuilder {
31+
return &planBuilder{
32+
vschema: vschema,
33+
jt: jt,
34+
}
35+
}

go/vt/vtgate/planbuilder/select.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,6 @@ import (
2424
"vitess.io/vitess/go/vt/vtgate/engine"
2525
)
2626

27-
// planBuilder is the top level type for building plans.
28-
// It contains the current builder tree, the symtab and
29-
// the jointab. It can create transient planBuilders due
30-
// to the recursive nature of SQL.
31-
type planBuilder struct {
32-
vschema ContextVSchema
33-
jt *jointab
34-
bldr builder
35-
st *symtab
36-
}
37-
38-
func newPlanBuilder(vschema ContextVSchema, jt *jointab) *planBuilder {
39-
return &planBuilder{
40-
vschema: vschema,
41-
jt: jt,
42-
}
43-
}
44-
4527
// buildSelectPlan is the new function to build a Select plan.
4628
func buildSelectPlan(sel *sqlparser.Select, vschema ContextVSchema) (primitive engine.Primitive, err error) {
4729
pb := newPlanBuilder(vschema, newJointab(sqlparser.GetBindvars(sel)))

0 commit comments

Comments
 (0)