LiJie20190102 commented on code in PR #10206:
URL: https://github.com/apache/seatunnel/pull/10206#discussion_r2636699627


##########
seatunnel-connectors-v2/connector-paimon/src/main/java/org/apache/seatunnel/connectors/seatunnel/paimon/source/converter/SqlToPaimonPredicateConverter.java:
##########
@@ -123,12 +122,11 @@ public static int[] 
convertSqlSelectToPaimonProjectionIndex(
             }
         }
 
-        String[] columnNamesArray = columnNames.toArray(new String[0]);
         projectionIndex =
-                IntStream.range(0, columnNamesArray.length)
-                        .map(
-                                i -> {
-                                    String fieldName = columnNamesArray[i];
+                columnNames.stream()
+                        .mapToInt(
+                                columnName -> {
+                                    String fieldName = columnName.replace("`", 
"");

Review Comment:
   FYI, can you extract a method from `columnName.replace("`", "")`, such as 
the method name 'extendedSupport()', and then put other supported characters 
into this method later



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