pgaref commented on a change in pull request #2004:
URL: https://github.com/apache/hive/pull/2004#discussion_r631128300



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
##########
@@ -806,6 +806,12 @@ public void put(Writable currentKey, Writable 
currentValue) throws SerDeExceptio
     internalPutRow(directWriteHelper, currentKey, currentValue);
   }
 
+  @Override
+  public long calculateLongHashCode(BytesWritable currentKey) throws 
HiveException, IOException, SerDeException {
+    directWriteHelper.setKeyValue(currentKey, null);
+    return (long)directWriteHelper.getHashFromKey();

Review comment:
       Casting seems redundant here




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

Reply via email to