JingsongLi opened a new pull request, #4726:
URL: https://github.com/apache/paimon/pull/4726

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   New MetastoreClient API:
   ```java
   /**
    * A metastore client related to a table. All methods of this interface 
operate on the same specific
    * table.
    */
   public interface MetastoreClient extends AutoCloseable {
   
       void addPartition(LinkedHashMap<String, String> partition) throws 
Exception;
   
       void addPartitions(List<LinkedHashMap<String, String>> partitions) 
throws Exception;
   
       void dropPartition(LinkedHashMap<String, String> partition) throws 
Exception;
   
       void dropPartitions(List<LinkedHashMap<String, String>> partitions) 
throws Exception;
   
       void markPartitionDone(LinkedHashMap<String, String> partition) throws 
Exception;
   
       default void alterPartition(
               LinkedHashMap<String, String> partition, PartitionStats 
partitionStats)
               throws Exception {
           throw new UnsupportedOperationException();
       }
   
       /** Factory to create {@link MetastoreClient}. */
       interface Factory extends Serializable {
   
           MetastoreClient create();
       }
   }
   ```
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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]

Reply via email to