Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

adv-cost-model: handle self joins #258

@skyzh

Description

@skyzh

Currently we already return selectivity = 1 in this case. This doesn't sound entirely correct. Self join can be observed in many cases, either user query, or subquery unnesting. We will see a distinct scan joined with the original scan on the right side of the dependent join. Ideally, it should directly give back the row count of the scan instead of giving selectivity = 1 (which is row count * row count).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions