1
0

[HUDI-1685] keep updating current date for every batch (#2671)

This commit is contained in:
Ankush Kanungo
2021-03-12 15:53:01 -08:00
committed by GitHub
parent 20786ab8a2
commit f5e31be086
2 changed files with 7 additions and 8 deletions

View File

@@ -210,7 +210,7 @@ public class TestDatePartitionPathSelector extends HoodieClientTestHarness {
createParentDirsBeforeDatePartitions(root, generateRandomStrings(), totalDepthBeforeDatePartitions, leafDirs);
createDatePartitionsWithFiles(leafDirs, isHiveStylePartition, dateFormat);
List<String> paths = pathSelector.pruneDatePartitionPaths(context, fs, root.toString());
List<String> paths = pathSelector.pruneDatePartitionPaths(context, fs, root.toString(), LocalDate.parse(currentDate));
assertEquals(expectedNumFiles, paths.size());
}
}