You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eli Griv (JIRA)" <ji...@apache.org> on 2010/10/05 14:43:34 UTC

[jira] Created: (HIVE-1690) HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack

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.


[jira] Updated: (HIVE-1690) HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack

Posted by "Eli Griv (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eli Griv updated HIVE-1690:
---------------------------

    Description: 
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", ex);

  was:
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);


> 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", ex);

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