JNSimba commented on code in PR #200:
URL: 
https://github.com/apache/doris-flink-connector/pull/200#discussion_r1338075238


##########
flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisSystem.java:
##########
@@ -180,7 +180,7 @@ public String buildCreateTableDDL(TableSchema schema) {
         //append table comment
         if(!StringUtils.isNullOrWhitespaceOnly(schema.getTableComment())){
             sb.append(" COMMENT '")
-                    .append(schema.getTableComment())
+                    .append(schema.getTableComment().replace("'",""))

Review Comment:
   Thanks,you can call `quoteComment` method



##########
flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisSystem.java:
##########
@@ -180,7 +180,7 @@ public String buildCreateTableDDL(TableSchema schema) {
         //append table comment
         if(!StringUtils.isNullOrWhitespaceOnly(schema.getTableComment())){
             sb.append(" COMMENT '")
-                    .append(schema.getTableComment())
+                    .append(schema.getTableComment().replace("'",""))

Review Comment:
   Thanks,you can call `quoteComment` method



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to