zjureel commented on code in PR #416:
URL: https://github.com/apache/flink-table-store/pull/416#discussion_r1038981579


##########
flink-table-store-core/src/main/java/org/apache/flink/table/store/table/AbstractFileStoreTable.java:
##########
@@ -40,6 +47,43 @@ public AbstractFileStoreTable(Path path, TableSchema 
tableSchema) {
 
     protected abstract FileStore<?> store();
 
+    protected abstract FileStoreTable copy(TableSchema newTableSchema);
+
+    @Override
+    public FileStoreTable copy(Map<String, String> dynamicOptions) {
+        // check option is not immutable
+        Map<String, String> options = tableSchema.options();
+        dynamicOptions.forEach(
+                (k, v) -> {
+                    if (!Objects.equals(v, options.get(k))) {

Review Comment:
   Should the immutable field be exist in the dynamic parameters? Maybe it's 
better to `SchemaManager.checkAlterTableOption(k)` without comparing the value



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