Skip to content

Improve the hash join performance by replacing the RawTable to a simple Vec for JoinHashMap #6910

@yahoNanJing

Description

@yahoNanJing

Is your feature request related to a problem or challenge?

When testing the TPCH q17 on my PC, based on #6800, it costs around 2.4s. Among them, it costs around 800ms for constructing the RawTable of JoinHashMap.

To only find the hash location, the structure, RawTable, we used is too complex and the overhead is too heavy.

Describe the solution you'd like

We can simple use a fixed size of vector with a hash mask to look up the hash location.

After applying the replacement, it only cost less than 100ms for the construction of JoinHashMap. And the overall time cost for the q17 is reduced from 2.4s to 1.8s.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformanceMake DataFusion faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions