korowa commented on code in PR #13751: URL: https://github.com/apache/datafusion/pull/13751#discussion_r1884977816
########## datafusion/physical-plan/src/joins/hash_join.rs: ########## @@ -90,9 +90,6 @@ struct JoinLeftData { /// Counter of running probe-threads, potentially /// able to update `visited_indices_bitmap` probe_threads_counter: AtomicUsize, - /// Memory reservation that tracks memory used by `hash_map` hash table - /// `batch`. Cleared on drop. - _reservation: MemoryReservation, Review Comment: UPD: some "logs" (additional prints :disappointed: ) just to check join execution before/after this patch: ``` // Before ---- joins::hash_join::tests::join_inner_one_no_shared_column_names stdout ---- Waiting build side Reserving 324 bytes Reserving 124 bytes Fetching probe batch Processing probe batch Fetching probe batch Processing unmatched build side Freeing 448 bytes // After ---- joins::hash_join::tests::join_inner_one_no_shared_column_names stdout ---- Waiting build side Reserving 324 bytes Reserving 124 bytes Freeing 448 bytes Fetching probe batch Processing probe batch Fetching probe batch Processing unmatched build side ``` so yes, the memory is "freed" before join completes its execution, which doesn't seem to be an expected behavior. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org