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


##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/config/FileFormat.java:
##########
@@ -129,6 +132,41 @@ public WriteStrategy getWriteStrategy(FileSinkConfig 
fileSinkConfig) {
         public ReadStrategy getReadStrategy() {
             return new BinaryReadStrategy();
         }
+    },
+    CANAL_JSON("canal_json") {
+        @Override
+        public WriteStrategy getWriteStrategy(FileSinkConfig fileSinkConfig) {
+            return new CanalJsonWriteStrategy(fileSinkConfig);
+        }
+
+        @Override
+        public ReadStrategy getReadStrategy() {
+            throw new UnsupportedOperationException("file format canal json 
type not support read");

Review Comment:
   Consider updating the exception message to improve clarity and grammar, 
e.g., 'file format canal json type does not support reading'.
   ```suggestion
               throw new UnsupportedOperationException("File format 
'canal_json' does not support reading.");
   ```



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