vvysotskyi commented on a change in pull request #1549: DRILL-6834: Introduce 
option to disable result set on CTAS, create vi…
URL: https://github.com/apache/drill/pull/1549#discussion_r236074049
 
 

 ##########
 File path: 
exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcQuery.java
 ##########
 @@ -403,4 +407,147 @@ public void testConvertFromInEmptyInputSql() throws 
Exception {
         .sql("SELECT CONVERT_FROM(columns[1], 'JSON') as col1 from 
cp.`empty.csv`")
         .returns("");
   }
+
+  @Test
+  public void testResultSetIsNotReturnedSet() throws Exception {
+    Statement s = null;
+    try (Connection conn = connect()) {
 
 Review comment:
   Please rewrite tests, since looks like a connection is closed before closing 
the statement [1].
   
   [1] 
https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20.3.2

----------------------------------------------------------------
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