Tartarus0zm commented on code in PR #20469:
URL: https://github.com/apache/flink/pull/20469#discussion_r945487215
##########
flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/table/FileSystemCommitterTest.java:
##########
@@ -40,12 +44,24 @@ class FileSystemCommitterTest {
private FileSystemFactory fileSystemFactory = FileSystem::get;
private TableMetaStoreFactory metaStoreFactory;
+ private List<PartitionCommitPolicy> policies;
+ private ObjectIdentifier identifier;
@TempDir private java.nio.file.Path outputPath;
@TempDir private java.nio.file.Path path;
@BeforeEach
public void before() throws IOException {
metaStoreFactory = new TestMetaStoreFactory(new
Path(outputPath.toString()));
+ policies =
+ PartitionCommitPolicy.createPolicyChain(
+ Thread.currentThread().getContextClassLoader(),
+ "metastore,success-file",
+ null,
+ "_SUCCESS",
+ () -> {
+ return new LocalFileSystem();
Review Comment:
This will fail to compile because `FileSystem is not a functional interface`.
--
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]