From 0dd4e39f5f951487262238cd8b2229128f3da1f3 Mon Sep 17 00:00:00 2001 From: zhuo-zhi <517770911@qq.com> Date: Wed, 26 May 2021 19:30:02 +0800 Subject: [PATCH] refine comment --- planner/core/point_get_plan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planner/core/point_get_plan.go b/planner/core/point_get_plan.go index 612bf8ef83bb5..21b35b3518f6b 100644 --- a/planner/core/point_get_plan.go +++ b/planner/core/point_get_plan.go @@ -1567,7 +1567,7 @@ func findPartitionIdx(idxInfo *model.IndexInfo, pos int, pairs []nameValuePair) return 0 } -// getPartitionColumnPos gets the partition column's position in the index. +// getPartitionColumnPos gets the partition column's position in the unique index. func getPartitionColumnPos(idx *model.IndexInfo, partitionExpr *tables.PartitionExpr, tbl *model.TableInfo) (int, error) { // regular table if partitionExpr == nil { @@ -1617,7 +1617,7 @@ func getPartitionColumnPos(idx *model.IndexInfo, partitionExpr *tables.Partition panic("unique index must include all partition columns") } -// getHashPartitionColumnPos gets the hash partition column's position in the index. +// getHashPartitionColumnPos gets the hash partition column's position in the unique index. func getHashPartitionColumnPos(idx *model.IndexInfo, partitionColName *ast.ColumnName) int { if partitionColName == nil { return 0