Skip to content

Commit 3298c59

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 0883bbc commit 3298c59

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

sql/analyzer/costed_index_scan.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ func newLeaf(ctx *sql.Context, id indexScanId, e sql.Expression, underlying stri
14141414
return nil, false
14151415
}
14161416

1417-
if op == sql.IndexScanOpIsNull || op == sql.IndexScanOpIsNotNull {
1417+
if op == sql.IndexScanOpIsNull || op == sql.IndexScanOpIsNotNull {
14181418
return &iScanLeaf{id: id, gf: gf, op: op, underlying: underlying}, true
14191419
}
14201420

@@ -1437,11 +1437,11 @@ func newLeaf(ctx *sql.Context, id indexScanId, e sql.Expression, underlying stri
14371437
}
14381438
}
14391439
return &iScanLeaf{
1440-
id: id,
1441-
gf: gf,
1442-
op: op,
1443-
setValues: litSet,
1444-
litType: litType,
1440+
id: id,
1441+
gf: gf,
1442+
op: op,
1443+
setValues: litSet,
1444+
litType: litType,
14451445
underlying: underlying,
14461446
}, true
14471447
}
@@ -1452,11 +1452,11 @@ func newLeaf(ctx *sql.Context, id indexScanId, e sql.Expression, underlying stri
14521452
}
14531453

14541454
return &iScanLeaf{
1455-
id: id,
1456-
gf: gf,
1457-
op: op,
1458-
litValue: value,
1459-
litType: right.Type(),
1455+
id: id,
1456+
gf: gf,
1457+
op: op,
1458+
litValue: value,
1459+
litType: right.Type(),
14601460
underlying: underlying,
14611461
}, true
14621462
}
@@ -1467,7 +1467,7 @@ func IndexLeafChildren(e sql.Expression) (sql.IndexScanOp, sql.Expression, sql.E
14671467
var left sql.Expression
14681468
var right sql.Expression
14691469
switch e := e.(type) {
1470-
// TODO: we need to extract an interface here so that pg expressions can use them as well
1470+
// TODO: we need to extract an interface here so that pg expressions can use them as well
14711471
case *expression.NullSafeEquals:
14721472
op = sql.IndexScanOpNullSafeEq
14731473
right = e.Right()
@@ -1555,7 +1555,7 @@ func IndexLeafChildren(e sql.Expression) (sql.IndexScanOp, sql.Expression, sql.E
15551555
ok := false
15561556
op, left, right, ok = e.IndexScanOperation()
15571557
if !ok {
1558-
return 0, nil, nil, false
1558+
return 0, nil, nil, false
15591559
}
15601560
default:
15611561
return 0, nil, nil, false

sql/index.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ var emptyLookup = IndexLookup{}
169169
type IndexComparisonExpression interface {
170170
// TODO: IndexScanOp probably needs to be moved into this package as well
171171
IndexScanOperation() (IndexScanOp, Expression, Expression, bool)
172-
173172
}
174173

175174
type IndexScanOp uint8
@@ -210,7 +209,6 @@ func (o IndexScanOp) Swap() IndexScanOp {
210209
}
211210
}
212211

213-
214212
func NewIndexLookup(idx Index, ranges MySQLRangeCollection, isPointLookup, isEmptyRange, isSpatialLookup, isReverse bool) IndexLookup {
215213
if isReverse {
216214
for i, j := 0, len(ranges)-1; i < j; i, j = i+1, j-1 {

sql/type.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,3 @@ const (
287287
ExtendedTypeSerializedWidth_64K ExtendedTypeSerializedWidth = iota // Represents a variably-sized value. The maximum number of bytes is (2^16)-1.
288288
ExtendedTypeSerializedWidth_Unbounded // Represents a variably-sized value. The maximum number of bytes is (2^64)-1, which is practically unbounded.
289289
)
290-

0 commit comments

Comments
 (0)