You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "dengzhhu653 (via GitHub)" <gi...@apache.org> on 2023/04/19 12:27:10 UTC

[GitHub] [hive] dengzhhu653 commented on a diff in pull request #4194: HIVE-27186: A persistent property store

dengzhhu653 commented on code in PR #4194:
URL: https://github.com/apache/hive/pull/4194#discussion_r1171263485


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java:
##########
@@ -2185,4 +2187,32 @@ Map<String, Map<String, String>> updatePartitionColumnStatisticsInBatch(
   Package findPackage(GetPackageRequest request);
   List<String> listPackages(ListPackageRequest request);
   void dropPackage(DropPackageRequest request);
+
+  /** Persistent Property Management. */
+  default MMetastoreDBProperties putProperties(String key, String value, String description, byte[] content) throws MetaException {
+    return null;
+  }
+
+  default <T> T getProperties(String key, java.util.function.Function<MMetastoreDBProperties, T> transform) throws MetaException {
+    return null;
+  }
+  default <T> Map<String, T> selectProperties(String key, java.util.function.Function<MMetastoreDBProperties, T> transform) throws MetaException {
+    return null;
+  }
+
+  default boolean renameProperties(String mapKey, String newKey) throws MetaException {
+    return false;
+  }
+
+  default boolean dropProperties(String key) throws MetaException {
+    return false;
+  }
+
+  default PropertyStore getPropertyStore() {

Review Comment:
   The `PropertyStore` is the place of creating/droping/selecting/renaming properties, so can we just add `PropertyStore getPropertyStore()`, and remove other properties methods from the RawStore?
   
   



-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org