Skip to content

Commit 6a6f861

Browse files
committed
fix formatters
1 parent 2ed4b57 commit 6a6f861

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sql/analyzer/costed_index_scan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ func costedIndexLookup(ctx *sql.Context, n sql.Node, a *Analyzer, iat sql.IndexA
138138
}
139139

140140
a.Log("new indexed table: %s/%s/%s", ita.Index().Database(), ita.Index().Table(), ita.Index().ID())
141-
a.Log("index stats cnt: ", stats.RowCount())
142-
a.Log("index stats histogram", stats.Histogram().DebugString())
141+
a.Log("index stats cnt: %d", stats.RowCount())
142+
a.Log("index stats histogram: %s", stats.Histogram().DebugString())
143143

144144
// excluded from tree + not included in index scan => filter above scan
145145
if len(filters) > 0 {

sql/memo/memo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ func (m *Memo) memoizeIndexScan(grp *ExprGroup, ita *plan.IndexedTableAccess, al
322322
// as done early.
323323
func (m *Memo) MemoizeStaticIndexAccess(grp *ExprGroup, aliasName string, idx *Index, ita *plan.IndexedTableAccess, filters []sql.Expression, stat sql.Statistic) {
324324
if m.Debug {
325-
m.Ctx.GetLogger().Debug("new indexed table: %s/%s/%s", ita.Index().Database(), ita.Index().Table(), ita.Index().ID())
326-
m.Ctx.GetLogger().Debug("index stats cnt: ", stat.RowCount())
327-
m.Ctx.GetLogger().Debug("index stats histogram", stat.Histogram().DebugString())
325+
m.Ctx.GetLogger().Debugf("new indexed table: %s/%s/%s", ita.Index().Database(), ita.Index().Table(), ita.Index().ID())
326+
m.Ctx.GetLogger().Debugf("index stats cnt: %d: ", stat.RowCount())
327+
m.Ctx.GetLogger().Debugf("index stats histogram: %s", stat.Histogram().DebugString())
328328
}
329329
if len(filters) > 0 {
330330
// set the indexed path as best. correct for cases where

0 commit comments

Comments
 (0)