vvysotskyi commented on a change in pull request #1397: DRILL-6633: Replace 
usage of Guava classes by JDK ones
URL: https://github.com/apache/drill/pull/1397#discussion_r210892513
 
 

 ##########
 File path: 
exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Bug1735ResultSetCloseReleasesBuffersTest.java
 ##########
 @@ -69,23 +69,19 @@ public static void tearDownClass() {
   public void test() throws Exception {
     withNoDefaultSchema()
     .withConnection(
-        new Function<Connection, Void>() {
-          public Void apply( Connection connection ) {
-            try {
-              Statement statement = connection.createStatement();
-              ResultSet resultSet = statement.executeQuery( "USE dfs.tmp" );
-              // TODO:  Purge nextUntilEnd(...) and calls when remaining 
fragment
-              // race conditions are fixed (not just DRILL-2245 fixes).
-              // resultSet.close( resultSet );
-              statement.close();
-              // connection.close() is in withConnection(...)
-              return null;
-            } catch ( SQLException e ) {
-              throw new RuntimeException( e );
-            }
+        (Function<Connection, Void>) connection -> {
 
 Review comment:
   I don't think that it is essential at least for current PR.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to