vinothchandar commented on a change in pull request #1858:
URL: https://github.com/apache/hudi/pull/1858#discussion_r458729215



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java
##########
@@ -151,6 +154,27 @@ public HoodieTableType getTableType() {
         : Option.empty();
   }
 
+  /**
+   * @return the table version from .hoodie properties file.
+   */
+  public HoodieTableVersion getHoodieTableVersionFromPropertyFile() {
+    if (props.contains(HOODIE_TABLE_VERSION_PROP_NAME)) {
+      String propValue = props.getProperty(HOODIE_TABLE_VERSION_PROP_NAME);
+      if (propValue.equals(HoodieTableVersion.ZERO_SIX_ZERO.version)) {
+        return HoodieTableVersion.ZERO_SIX_ZERO;
+      }
+    }
+    return DEFAULT_TABLE_VERSION;
+  }
+
+  /**
+   * @return the current hoodie table version.
+   */
+  public HoodieTableVersion getCurrentHoodieTableVersion() {
+    // TODO: fetch current version dynamically

Review comment:
       By reading `hoodie.properties` we need to treat everything below 0.6.0 
as V_PRE_0.6.0 . Cannot deduce the actual jars per se. 
   
   We can also make these version numbers 0,1,2 instead of PRE_0.6.0, 0.6.0, 
0.7.0 and so on. ?




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

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


Reply via email to