xx789633 commented on code in PR #2161:
URL: https://github.com/apache/fluss/pull/2161#discussion_r2646855495
##########
fluss-server/src/main/java/org/apache/fluss/server/zk/data/ZkData.java:
##########
@@ -252,6 +252,41 @@ public static String path() {
}
}
+ /**
+ * The znode for columns of a table. The znode path is:
+ *
+ *
<p>/metadata/databases/[databaseName]/tables/[tableName]/schemas/[schemaId]/columns
+ */
+ public static final class ColumnsZNode {
+ public static String path(TablePath tablePath, int schemaId) {
+ return SchemaZNode.path(tablePath, schemaId) + "/columns";
+ }
+ }
+
+ /**
+ * The znode for schemas of a table. The znode path is:
+ *
+ *
<p>/metadata/databases/[databaseName]/tables/[tableName]/schemas/[schemaId]/columns/[columnIdx]
+ */
+ public static final class ColumnZNode {
+ public static String path(TablePath tablePath, int schemaId, int
columnIdx) {
+ return ColumnsZNode.path(tablePath, schemaId) + "/" + columnIdx;
+ }
+ }
+
+ /**
+ * The znode for auto increment column. The znode path is:
+ *
+ *
<p>/metadata/databases/[databaseName]/tables/[tableName]/schemas/[schemaId]/columns/[columnIdx]/auto_increment_counter
Review Comment:
according to FIP, the znode path should be
/metadata/databases/[databaseName]/tables/[tableName]/auto_inc/col_[columnIdx]
--
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]