Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
354 changes: 343 additions & 11 deletions pkg/partitionservice/service.go

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions pkg/partitionservice/service_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ func (s *Service) getMetadataByListType(
def,
desc,
partition.PartitionMethod_List,
func(p *tree.Partition) string {
ctx := tree.NewFmtCtx(
dialect.MYSQL,
tree.WithQuoteIdentifier(),
tree.WithSingleQuoteString(),
)
p.Values.Format(ctx)
return ctx.String()
},
getExpr,
)
}
10 changes: 1 addition & 9 deletions pkg/partitionservice/service_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ func (s *Service) getMetadataByRangeType(
def,
desc,
partition.PartitionMethod_Range,
func(p *tree.Partition) string {
ctx := tree.NewFmtCtx(
dialect.MYSQL,
tree.WithQuoteIdentifier(),
tree.WithSingleQuoteString(),
)
p.Values.Format(ctx)
return ctx.String()
},
getExpr,
)
}
Loading
Loading