You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEA] Filter join probe table rows that contain nulls when nulls are not equal #9151
Is your feature request related to a problem? Please describe.
In the hash join implementation, we allow controlling the behavior of whether two null elements are considered equal. If nulls are not equal, then two rows that contain nulls can never be considered equal. We exploit this in the build phase of the hash join by constructing a bitmask from ANDing the bitmasks from all the input columns and using that "row bitmask" to filter out any rows that contain a null element from being inserted into the hash table.
When it comes time to probe the hash table, we do not currently take advantage of this some optimization.
Describe the solution you'd like
When probing the hash map and nulls are considered not equal, we should build bitmask from ANDing all of the bitmasks of the probe table and only probe the map when a row does not contain any nulls.
Additional context
The hash join implementation is currently going a complete refactor to use the cuCollections static_multimap. To support the filtered insert, we added an insert_if function. I think we can also add a retrieve_if function to support the filtered probing.
This is problematic as a user could specify contradicting options in the build vs probe. The null_equality should be specified exactly once in the hash_join constructor and then stored for future probing operations.
This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.
This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.
@PointKernel I think we can close this now, right? Based on the work in #10248 we don't actually see a perf benefit here due to the effects on the performance of the hash map when the load factor is higher?
This feature is still desired since #10248 is the exploration to reduce actual map size (thus memory footprint) by using precomputed row bitmasks while the goal of this work is to perform conditional probing when nulls are present. The issue depends on NVIDIA/cuCollections#139.
Activity
jrhemstad commentedon Aug 31, 2021
@jlowe points out that both the
hash_joinconstructor and the "probing" member functions allow specifying thenull_equalityparameter.This is problematic as a user could specify contradicting options in the build vs probe. The
null_equalityshould be specified exactly once in thehash_joinconstructor and then stored for future probing operations.jlowe commentedon Aug 31, 2021
Filed #9155 to track separately the potential
null_equalityparameter mismatch problem in thecudf::hash_joinAPI.github-actions commentedon Nov 15, 2021
This issue has been labeled
inactive-30ddue to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeledinactive-90dif there is no activity in the next 60 days.github-actions commentedon Feb 13, 2022
This issue has been labeled
inactive-90ddue to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.Add row bitmask as a `detail::hash_join` member (#10248)
vyasr commentedon Jul 15, 2022
@PointKernel I think we can close this now, right? Based on the work in #10248 we don't actually see a perf benefit here due to the effects on the performance of the hash map when the load factor is higher?
PointKernel commentedon Jul 15, 2022
This feature is still desired since #10248 is the exploration to reduce actual map size (thus memory footprint) by using precomputed row bitmasks while the goal of this work is to perform conditional probing when nulls are present. The issue depends on NVIDIA/cuCollections#139.