Copilot commented on code in PR #9332:
URL: https://github.com/apache/seatunnel/pull/9332#discussion_r2094879541


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java:
##########
@@ -65,11 +65,11 @@ public enum CommonErrorCode implements SeaTunnelErrorCode {
 
     WRITE_SEATUNNEL_ROW_ERROR_WITH_SCHEMA_INCOMPATIBLE_SCHEMA(
             "COMMON-30",
-            "<connector>: The source filed with schema 
'<sourceFieldSqlSchema>', except filed schema of sink is 
'<exceptFieldSqlSchema>'; but the filed in sink table which actual schema is 
'<sinkFieldSqlSchema>'. Please check schema of sink table."),
+            "'<connector>': The source field with schema 
'<sourceFieldSqlSchema>', expected field schema of sink is 
'<exceptFieldSqlSchema>'; whose actual schema in the sink table is 
'<sinkFieldSqlSchema>'. Please check schema of sink table."),

Review Comment:
   The placeholder `<exceptFieldSqlSchema>` and corresponding parameter name 
still use `except` but the message says `expected`. Rename them to 
`<expectedFieldSqlSchema>` and update the code that populates this parameter 
for consistency.
   ```suggestion
               "'<connector>': The source field with schema 
'<sourceFieldSqlSchema>', expected field schema of sink is 
'<expectedFieldSqlSchema>'; whose actual schema in the sink table is 
'<sinkFieldSqlSchema>'. Please check schema of sink table."),
   ```



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