From 31185a7644b91cca791123084999c59326a7ec5c Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 4 Sep 2024 15:25:39 +0800 Subject: [PATCH] tmp0904 Signed-off-by: Weizhen Wang --- pkg/planner/core/logical_plan_builder.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/planner/core/logical_plan_builder.go b/pkg/planner/core/logical_plan_builder.go index de4410fc52970..da8b65fc65756 100644 --- a/pkg/planner/core/logical_plan_builder.go +++ b/pkg/planner/core/logical_plan_builder.go @@ -4048,9 +4048,6 @@ func (ds *DataSource) AddExtraPhysTblIDColumn() *expression.Column { // 3. statistics is outdated. // Note: please also update getLatestVersionFromStatsTable() when logic in this function changes. func getStatsTable(ctx base.PlanContext, tblInfo *model.TableInfo, pid int64) *statistics.Table { - if !ctx.GetSessionVars().InRestrictedSQL { - fmt.Println("fmt") - } statsHandle := domain.GetDomain(ctx).StatsHandle() var usePartitionStats, countIs0, pseudoStatsForUninitialized, pseudoStatsForOutdated bool var statsTbl *statistics.Table