impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Zeyliger (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-6011: Remove use of Guava Hasher.
Date Thu, 05 Oct 2017 17:48:23 GMT
Philip Zeyliger has posted comments on this change. (

Change subject: IMPALA-6011: Remove use of Guava Hasher.

Patch Set 2:

File fe/src/main/java/org/apache/impala/analysis/
PS2, Line 318:   private final char[] hexDigits_ = "0123456789abcdef".toCharArray();
You can make this static and call it HEX_DIGITS to mark it as a constant?
PS2, Line 593:   private String getQueryHash(String queryStr) {
It's a bit pedantic, but it'd be nice to write a test that executes this code. Ideally, we'd
also confirm that some query hashes to the same result as it used to with the Guava implementation.
PS2, Line 599:       throw new IllegalStateException("Query hash failed");
typically this would be "throw new IllegalStateException("Query hash failed", e)"

I think that chains the exceptions, which is handy since we'll want to know what e.getMessage()

(This will never actually happen, but it's more idiomatic I think.)

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I04b8888b436eb93a86b8db24b2a97f14047f828b
Gerrit-Change-Number: 8216
Gerrit-PatchSet: 2
Gerrit-Owner: Alex Behm <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Impala Public Jenkins
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Comment-Date: Thu, 05 Oct 2017 17:48:23 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message