mbutrovich commented on issue #27398:
URL: https://github.com/apache/datafusion/issues/27398#issuecomment-7135366319

   @2010YOUY01 now that #27399 has merged, do you plan to bring #27401 up to 
date with `main` and mark it ready for review? I'd like to review it.
   
   I ask because #27530 by @andygrove, with #26447 and #27614 planned after it, 
also stores the build rows of repeated keys together. It does that inside the 
current `JoinHashMapU32`, `JoinHashMapU64`, and `ArrayMap`. With 
`enable_migration_hash_join` on, #27401 replaces those maps for inner and outer 
joins with `JoinIndexMap` 
([config.rs](https://github.com/apache/datafusion/blob/e04da7b57c3ceb209b0b55630f177b6747da92d3/datafusion/common/src/config.rs#L980-L990),
 and 
[join_index.rs](https://github.com/apache/datafusion/blob/e04da7b57c3ceb209b0b55630f177b6747da92d3/datafusion/physical-plan/src/joins/join_index.rs#L104-L108)
 for dense integer keys). Step 3 here moves semi, anti, and mark joins onto it. 
After both, the grouping in #27530 would only run on the fallback, and the 
option's doc says the fallback will be removed.
   
   `JoinIndexMap` also keeps a key with one row inline and points a repeated 
key at its group 
([join_index.rs](https://github.com/apache/datafusion/blob/e04da7b57c3ceb209b0b55630f177b6747da92d3/datafusion/physical-plan/src/joins/join_index.rs#L34-L46)).
 That is the layout @comphead suggested in 
https://github.com/apache/datafusion/pull/27530#pullrequestreview-5979199712. 
It covers the case #27614 is open for, one hot key among unique keys, which 
#27530 leaves chained.
   
   #27398 lays out the design, and #27399 was built for it, so I'd rather land 
the hash table change through #27401 than merge #27530 first and have #27401 
rework it. Could we consolidate this work behind #27401, so that it supersedes 
#27530, #26447, and #27614? @andygrove, is there anything from #27530 you'd 
want carried into #27401, such as its tests or the `grouped_map_count` metric? 
@comphead, does that plan work for you?


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