Skip to content

Commit

Permalink
HIVE-17429: Hive JDBC doesn't return rows when querying Impala (Zach …
Browse files Browse the repository at this point in the history
…Amsden, reviewed by Aihua Xu)
  • Loading branch information
Aihua Xu committed Sep 8, 2017
1 parent c52aba1 commit 8482c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public boolean execute(String sql) throws SQLException {
TGetOperationStatusResp status = waitForOperationToComplete();

// The query should be completed by now
if (!status.isHasResultSet()) {
if (!status.isHasResultSet() && !stmtHandle.isHasResultSet()) {
return false;
}
resultSet = new HiveQueryResultSet.Builder(this).setClient(client).setSessionHandle(sessHandle)
Expand Down

0 comments on commit 8482c5f

Please sign in to comment.