LadyForest commented on code in PR #24390:
URL: https://github.com/apache/flink/pull/24390#discussion_r1505822872


##########
flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/table/FileSystemOutputFormatTest.java:
##########


Review Comment:
   The reason I added tests in `FileSystemOutputFormatTest` is that the issue 
is triggered when the `FileSystemOutputFormat#finalizeGlobal` method is called 
(triggered by the final block).
   
   If we add tests only for `FileSystemTableSink`, we won't be able to 
reproduce the issue and verify the fix. Do you think it would be a good idea if 
I made `FileSystemTableSink#toStagingPath` a static method, added the 
`VisibleForTesting` annotation, and called it in `FileSystemOutputFormatTest`?



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to