From 175a799d9d4910822516ece8ef0c49eda8a8c012 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Fri, 5 Jul 2024 13:42:23 +0800 Subject: [PATCH] fix: typo --- pkg/statistics/handle/cache/statscache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/statistics/handle/cache/statscache.go b/pkg/statistics/handle/cache/statscache.go index ddda2d4cc8c72..79bc9a8d1c005 100644 --- a/pkg/statistics/handle/cache/statscache.go +++ b/pkg/statistics/handle/cache/statscache.go @@ -134,7 +134,7 @@ func (s *StatsCacheImpl) Update(is infoschema.InfoSchema) error { // but because the predicate columns feature is turned on, and it doesn't have any columns or indexes analyzed, // it only analyzes _row_id and refreshes stats_meta, in which case the snapshot is not zero. // 2. LastAnalyzeVersion is 0 because it has never been loaded. - // In this case, we can initialise LastAnalyzeVersion to a snapshot, + // In this case, we can initialize LastAnalyzeVersion to a snapshot, // otherwise auto-analyze will think that the table has never been analyzed and try to analyze it again. if tbl.LastAnalyzeVersion == 0 && snapshot != 0 { tbl.LastAnalyzeVersion = snapshot