zhoulii commented on a change in pull request #19152:
URL: https://github.com/apache/flink/pull/19152#discussion_r830851402



##########
File path: 
flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/utils/TpcdsResultComparator.java
##########
@@ -61,7 +62,8 @@ public static void main(String[] args) throws Exception {
 
         for (String queryId : VALIDATE_QUERIES) {
             File expectedFile = new File(expectedDir, queryId + RESULT_SUFFIX);
-            File actualFile = new File(actualDir, queryId + RESULT_SUFFIX);
+            File actualFileDirectory = new File(actualDir, queryId + 
RESULT_SUFFIX);
+            File actualFile = 
Objects.requireNonNull(actualFileDirectory.listFiles())[0];

Review comment:
       the output of old csv sink is a file, but for new csv sink, output is a 
directory. so we need add a step to get the actualFile. 




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