pingcap / pingcap/tiflash

[MPP/Optimizer] Join type selection is not accurate

Open
#1,114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority/P1
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Director Xu found tidb optimzer compares cop task and root task cost ; then select hash join in the circumstances of small data sets.

But when data set is large, as 10G ssb test, this problem would not appear.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing the small-data case described and trace how TiDB compares cop-task and root-task costs when selecting a hash join. Done means the optimizer chooses an appropriate join type for both small and large datasets, with regression coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.