Skip to content

Should Ballista use sort-merge join rather than hash join by default? #1648

@andygrove

Description

@andygrove

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
DataFusion's hash join implementation does not have spilling yet, so can easily OOM. This is even more likely in Ballista because each executor is processing multiple tasks in parallel.

For example, I cannot get the integration tests to pass (./dev/integration-test.sh) due to OOM, unless I disable hash joins.

Describe the solution you'd like
Personally, I think it would be better for Ballista to default to sort-merge join, and let the user override that if they want hash join. This would be the opposite of DataFusion's config, which enables hash join by default.

Describe alternatives you've considered
It would be nice if DataFusion had a spilling hash join implementation. I am working on one in Comet in apache/datafusion-comet#4184

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions