This is an automated email from the ASF dual-hosted git repository.

xiong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git


The following commit(s) were added to refs/heads/master by this push:
     new 95c1eb0  [CALCITE-4828] Standard exception console output
95c1eb0 is described below

commit 95c1eb06ecb9dbc85de6d12142b013271965c594
Author: NobiGo <nobigo...@gmail.com>
AuthorDate: Wed Oct 20 03:47:49 2021 +0800

    [CALCITE-4828] Standard exception console output
---
 core/src/main/java/org/apache/calcite/avatica/AvaticaConnection.java  | 1 -
 server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java | 1 -
 2 files changed, 2 deletions(-)

diff --git 
a/core/src/main/java/org/apache/calcite/avatica/AvaticaConnection.java 
b/core/src/main/java/org/apache/calcite/avatica/AvaticaConnection.java
index b3552f8..6a5830b 100644
--- a/core/src/main/java/org/apache/calcite/avatica/AvaticaConnection.java
+++ b/core/src/main/java/org/apache/calcite/avatica/AvaticaConnection.java
@@ -553,7 +553,6 @@ public abstract class AvaticaConnection implements 
Connection {
           signature2 = executeResult.resultSets.get(0).signature;
         }
       } catch (Exception e) {
-        e.printStackTrace();
         throw HELPER.createException(e.getMessage(), e);
       }
 
diff --git 
a/server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java 
b/server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java
index ffcc64d..a97d775 100644
--- a/server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java
+++ b/server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java
@@ -913,7 +913,6 @@ public class RemoteDriverTest {
       final ResultSet resultSet = ps.executeQuery();
       fail("expected error, got " + resultSet);
     } catch (SQLException e) {
-      LOG.info("Caught expected error", e);
       assertThat(e.getMessage(),
           containsString("exception while executing query: unbound 
parameter"));
     }

Reply via email to