yuqi1129 commented on code in PR #9878:
URL: https://github.com/apache/gravitino/pull/9878#discussion_r2793466865


##########
catalogs-contrib/catalog-jdbc-clickhouse/src/main/java/org/apache/gravitino/catalog/clickhouse/operations/ClickHouseTableOperations.java:
##########
@@ -93,8 +94,7 @@ ARRAY JOIN arrayZip(splitByChar(',', primary_key), 
arrayEnumerate(splitByChar(',
   protected List<Index> getIndexes(Connection connection, String databaseName, 
String tableName) {
     // cause clickhouse not impl getPrimaryKeys yet, ref:
     // https://github.com/ClickHouse/clickhouse-java/issues/1625
-    String sql =
-        QUERY_INDEXES_SQL.formatted(quoteIdentifier(databaseName), 
quoteIdentifier(tableName));
+    String sql = QUERY_INDEXES_SQL.formatted(databaseName, tableName);

Review Comment:
   This the the query string and we should not add quote in the table name.
   ```
           AND system.tables.database = '%s'
           AND system.tables.name = '%s'
   ```



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