jiangxt2 commented on code in PR #12274:
URL: https://github.com/apache/gravitino/pull/12274#discussion_r3793550857


##########
catalogs-contrib/catalog-jdbc-clickhouse/src/main/java/org/apache/gravitino/catalog/clickhouse/operations/ClickHouseTableOperations.java:
##########
@@ -705,6 +710,20 @@ protected Map<String, String> 
getTableProperties(Connection connection, String t
                       put(ClusterConstants.ON_CLUSTER, String.valueOf(false));
                     }
 
+                    // Extract engine parameters from engine_full for 
non-Distributed engines.
+                    // engine_full contains the full engine DDL (e.g.
+                    // "ReplacingMergeTree(ts) ORDER BY id SETTINGS ..."), 
while the engine
+                    // column only contains the engine name without parameters.
+                    // For Distributed engines, parameters are already stored 
as separate
+                    // distributed-table properties below.
+                    if (!StringUtils.equalsIgnoreCase(engine, 
ENGINE.DISTRIBUTED.getValue())) {
+                      String engineFull = resultSet.getString("engine_full");
+                      String engineParams = extractEngineParams(engine, 
engineFull);
+                      if (StringUtils.isNotBlank(engineParams)) {
+                        put(TableConstants.ENGINE_PARAMETERS, engineParams);
+                      }
+                    }

Review Comment:
   Fixed in 7517295a. Graphite parameters are restored only as the unquoted 
graphite.config value and excluded from generic engine_parameters, so 
load-to-create round-tripping is consistent.



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