hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Griv (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1690) HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack
Date Wed, 06 Oct 2010 10:09:31 GMT

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


Mime
View raw message