Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Nov 26, 2021
1 parent 790df35 commit dc6d42d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions expression/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ func (s *Schema) String() string {
}
ukStrs := make([]string, 0, len(s.Keys))
for _, key := range s.Keys {
ukColStrs := make([]string, 0, len(key))
for _, col := range key {
ukColStrs = append(ukColStrs, col.String())
}
ukStrs = append(ukStrs, "["+strings.Join(ukColStrs, ",")+"]")
ukStrs = append(ukStrs, key.String())
}
return "Column: [" + strings.Join(colStrs, ",") + "] Unique key: [" + strings.Join(ukStrs, ",") + "]"
}
Expand Down

0 comments on commit dc6d42d

Please sign in to comment.