belugabehr commented on a change in pull request #1029: URL: https://github.com/apache/hive/pull/1029#discussion_r435277483
########## File path: jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java ########## @@ -196,6 +197,14 @@ private void closeStatementIfNeeded() throws SQLException { } } catch (SQLException e) { throw e; + } catch (TApplicationException tae) { + String errorMsg = tae.getMessage(); Review comment: The default message should still be `Failed to close statement`. The message of the `TApplicationException` will be preserved because the entire Exception is passed into the `SQLException`. With that said, you can you please append that to the `BAD_SEQUENCE_ID` error as well? > Failed to close statement. Mismatch thrift sequence id. A previous ... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org