JingsongLi commented on code in PR #775:
URL: https://github.com/apache/incubator-paimon/pull/775#discussion_r1159249557


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/FlinkCatalog.java:
##########
@@ -210,11 +212,31 @@ public void createTable(ObjectPath tablePath, 
CatalogBaseTable table, boolean ig
         }
 
         // remove table path
-        String specific = options.remove(PATH.key());
-        if (specific != null) {
-            catalogTable = catalogTable.copy(options);
+        options.remove(PATH.key());
+
+        // Put Paimon catalog global options into table options
+        // ref https://github.com/apache/incubator-paimon/issues/754
+        if (catalog instanceof org.apache.paimon.catalog.AbstractCatalog) {

Review Comment:
   We should put this into `AbstractCatalog`. Other engines should have this 
capability too.
   In `AbstractCatalog`:
   ```
   protected AbstractCatalog(FileIO fileIO, Map<String, String> catalogOptions) 
{
           this.fileIO = fileIO;
           this.tableDefaultOptions = ...;
   }
   ```
   
   And copy Schema in `createTable` with table default options.



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