Skip to content

Commit

Permalink
refine comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuo-zhi committed May 26, 2021
1 parent 7874c17 commit 0dd4e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planner/core/point_get_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0dd4e39

Please sign in to comment.