forked from cloudera/impyla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interoperability with Hive client version >= V10 (cloudera#396) (c…
…loudera#397) Impyla uses Hive client version V6 and doesn't work correctly against Hive client protocol version >= V10. The issue happens when async compilation is enabled: 1. Impyla waits for the query to get into a fetchable state. 2. Impyla checks TOperationHandle.hasResultSet before trying to fetch the results. The problem is that TOperationHandle.hasResultSet is not set correctly any longer. The flag was moved to TGetOperationStatusResp in later Hive client versions. This fix makes sure that TGetOperationStatusResp.hasResultSet is used instead of TOperationHandle.hasResultSet if present. Testing: - Manually tested against a Hive client version V10. Co-authored-by: Attila Jeges <[email protected]>
- Loading branch information
1 parent
ed0f8bc
commit e14138d
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters