Skip to content

Improve colocate join validation #5558

@Xpray

Description

@Xpray

Describe the bug

There are 3 tables A, B, C

the query looks like: A inner join (B left semi join C)

then QP will report that inner join can not be colocated due to "Node type not match"

after change query to (B left semi join C) inner join A, the colocate join works.

I found the code snippet below, and suspect it misses the case that "leftRoot as ScanNode and rightRoot as JoinNode"
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions