[ https://issues.apache.org/jira/browse/FLINK-31281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17705341#comment-17705341 ]
Matthias Pohl commented on FLINK-31281: --------------------------------------- Sorry for the late reply. We're not gaining much from it. In FLINK-31015 was created to improve the usability for SDK users. I would not focus on that one and rather close this issue. WDYT? > PythonFunctionRunner doesn't extend AutoCloseable but implements close > ---------------------------------------------------------------------- > > Key: FLINK-31281 > URL: https://issues.apache.org/jira/browse/FLINK-31281 > Project: Flink > Issue Type: Improvement > Components: API / Python > Reporter: Ran Tao > Priority: Major > > The PythonFunctionRunner provides a {{close}} method (see > [PythonFunctionRunner|https://github.com/apache/flink/blob/0612a997ddcc791ee54f500fbf1299ce04987679/flink-python/src/main/java/org/apache/flink/python/PythonFunctionRunner.java]) > but doesn't implement {{{}AutoCloseable{}}}. However {{AutoCloseable}} would > enable us to use Java's try-with-resources feature and more generic utility > classes. -- This message was sent by Atlassian Jira (v8.20.10#820010)