You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "luoyuxia (via GitHub)" <gi...@apache.org> on 2026/07/27 04:19:02 UTC

Re: [PR] [lake/paimon] Support custom Paimon lake table path [fluss]

luoyuxia commented on code in PR #3476:
URL: https://github.com/apache/fluss/pull/3476#discussion_r3654371212


##########
fluss-common/src/main/java/org/apache/fluss/config/ConfigOptions.java:
##########
@@ -1813,6 +1813,20 @@ public class ConfigOptions {
                                     + "The `table.datalake.format` can be pre-defined before enabling `table.datalake.enabled`. This allows the data lake feature to be dynamically enabled on the table without requiring table recreation. "
                                     + "If `table.datalake.format` is not explicitly set during table creation, the table will default to the format specified by the `datalake.format` configuration in the Fluss cluster.");
 
+    public static final ConfigOption<String> TABLE_DATALAKE_DATABASE_NAME =

Review Comment:
   also add the option to document



##########
fluss-server/src/main/java/org/apache/fluss/server/coordinator/MetadataManager.java:
##########
@@ -577,6 +580,29 @@ public void alterTableProperties(
         }
     }
 
+    private void validateAlterLakeTablePath(TableInfo tableInfo, TableDescriptor newDescriptor)
+            throws Exception {
+        TablePath currentLakeTablePath = tableInfo.getLakeTablePath();
+        TablePath newLakeTablePath =
+                LakeTableUtil.getLakeTablePath(
+                        tableInfo.getTablePath(), newDescriptor.getProperties());
+        if (currentLakeTablePath.equals(newLakeTablePath)) {
+            return;
+        }
+
+        boolean lakeTablePathChangeForbidden =
+                tableInfo.getTableConfig().isDataLakeEnabled()
+                        || zookeeperClient.getLakeTable(tableInfo.getTableId()).isPresent();
+        if (lakeTablePathChangeForbidden) {

Review Comment:
   Would it meet your requirements if these options could only be set when creating the table and could not be modified afterward?
   
   Supporting path changes would introduce additional complexity around existing lake tables, tiering progress, and data migration



-- 
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: issues-unsubscribe@fluss.apache.org

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