Skip to content

support join conditions in where clause #892

Closed

Description

@houqp

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

tpch query 8 is taking forever to execute in ballista because its subquery is planned as a cross join across 8 tables.

Describe the solution you'd like

The join conditions for query 8 are specified in the where clause. Our optimizer should pick this up and rewrite the part of the cross join into inner join.

Describe alternatives you've considered

Handle the rewrite in sql planner, but this will won't benefit dataframe users.

Additional context
Surfaced from #891.

Activity

  1. xudong963 commented on Oct 9, 2021

    @xudong963
    Member

    @houqp I want to try it!

  2. houqp commented on Nov 13, 2021

    @houqp
    MemberAuthor

    You are right @xudong963. I think there is a bug in that rewrite that resulted in inefficient cross join in an edge-case. I filed #1293 to track that problem instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions