adriangb commented on code in PR #19379:
URL: https://github.com/apache/datafusion/pull/19379#discussion_r2632028213


##########
datafusion/physical-plan/src/joins/hash_join/partitioned_hash_eval.rs:
##########
@@ -206,13 +259,15 @@ impl Hash for HashTableLookupExpr {
     fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
         self.hash_expr.dyn_hash(state);
         self.description.hash(state);
+        Arc::as_ptr(&self.hash_map).hash(state);

Review Comment:
   I guess we could not hash it and let any sort of hash comparison fall back 
to equality on collision.
   The point (a good pun with pointer?) is that we don't want to actually 
compare the hash maps (expensive) but if the pointer points to different 
hashmaps we can just assume the expression is different.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to