Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Aug 15, 2023
1 parent 0f67a35 commit 435c76b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions planner/core/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,6 @@ func (ds *DataSource) DeriveStats(_ []*property.StatsInfo, _ *expression.Schema,
if ds.StatsInfo() != nil && len(colGroups) == 0 {
return ds.StatsInfo(), nil
}
if strings.HasPrefix(ds.SCtx().GetSessionVars().StmtCtx.OriginalSQL, "explain format='verbose' select count(*) from t where a=1") {
fmt.Println(1)
}
ds.initStats(colGroups)
if ds.StatsInfo() != nil {
// Just reload the GroupNDVs.
Expand Down

0 comments on commit 435c76b

Please sign in to comment.