JNSimba commented on code in PR #474: URL: https://github.com/apache/doris-flink-connector/pull/474#discussion_r1724481246
########## flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisSystem.java: ########## @@ -103,10 +104,11 @@ public void createTable(TableSchema schema) { } public void execute(String sql) { - try (Statement statement = - jdbcConnectionProvider.getOrEstablishConnection().createStatement()) { + try (Connection connection = jdbcConnectionProvider.getOrEstablishConnection(); + Statement statement = connection.createStatement()) { statement.execute(sql); Review Comment: If you close it, you may not be able to reuse the link -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org