HivePreparedStatement.executeImmediate(String sql) is breaking the exception 
stack
----------------------------------------------------------------------------------

                 Key: HIVE-1690
                 URL: https://issues.apache.org/jira/browse/HIVE-1690
             Project: Hadoop Hive
          Issue Type: Improvement
            Reporter: Eli Griv
            Priority: Minor


in HivePreparedStatement.executeImmediate(String sql), the exception stack is 
broken, so it's impossible to know which method throwed "Method not supported" 

FIX :

HivePreparedStatement.java

L166
-   throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode());
+  throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode(), e);

L168
-   throw new SQLException(ex.toString(), "08S01");
+  throw new SQLException(ex.toString(), "08S01", e);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to