JingsongLi commented on code in PR #4786:
URL: https://github.com/apache/paimon/pull/4786#discussion_r1899288483
##########
paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java:
##########
@@ -360,17 +376,45 @@ public void dropTable(Identifier identifier, boolean
ignoreIfNotExists)
@Override
public void createPartition(Identifier identifier, Map<String, String>
partitionSpec)
throws TableNotExistException {
- throw new UnsupportedOperationException();
+ try {
+ CreatePartitionRequest request = new
CreatePartitionRequest(identifier, partitionSpec);
+ client.post(
+ resourcePaths.partitions(
+ identifier.getDatabaseName(),
identifier.getTableName()),
+ request,
+ SuccessResponse.class,
Review Comment:
here should return Partition?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]