Skip to content

Commit

Permalink
Update hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Apr 29, 2024
1 parent f2d65d7 commit 56ac547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions velox/connectors/hive/FileHandleKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ struct hash<facebook::velox::FileHandleKey> {
size_t operator()(const facebook::velox::FileHandleKey& key) const {
auto hasher = folly::Hash{};
uint64_t combinedHash = 0;
combinedHash = folly::hash::commutative_hash_combine_value_generic(
combinedHash, hasher, key.getFileSize());
combinedHash = folly::hash::commutative_hash_combine_value_generic(
combinedHash, hasher, key.getModificationTime());
combinedHash = folly::hash::commutative_hash_combine_value_generic(
combinedHash, hasher, key.getFilePath());
combinedHash = folly::hash::hash_combine_generic(
hasher, combinedHash, key.getFileSize());
combinedHash = folly::hash::hash_combine_generic(
hasher, combinedHash, key.getModificationTime());
combinedHash = folly::hash::hash_combine_generic(
hasher, combinedHash, key.getFilePath());
return combinedHash;
}
};
Expand Down

0 comments on commit 56ac547

Please sign in to comment.