jerryshao commented on code in PR #14764:
URL: https://github.com/apache/gravitino/pull/14764#discussion_r4509206458


##########
catalogs/catalog-jdbc-doris/src/main/java/org/apache/gravitino/catalog/doris/operation/DorisTableOperations.java:
##########
@@ -805,7 +801,7 @@ protected void getTableStatus(Connection connection, String 
databaseName, String
     String sql =
         String.format(
             "SHOW ALTER TABLE COLUMN WHERE TableName = '%s' ORDER BY JobId 
DESC limit 1",
-            tableName);
+            escapeSqlLiteral(tableName, '\''));

Review Comment:
   Good to escape the string literal here; the Doris and StarRocks database 
operations still use raw backtick formatting for schema names (CREATE, DROP, 
SHOW TABLES). Consider routing those through the same quote helper in a 
follow-up.



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