oceanbase / oceanbase/miniob

[BUG] select * from t, t; execute fail

Open
#237 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
4.4k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
A clear and concise description of what the bug is.

If execute the sql below, it coredump

select * from t,t;

Fast Reproduce Steps(Required)
Steps to reproduce the behavior:

create table t(id int);
insert into t values(1);
select * from t,t;

Expected behavior
A clear and concise description of what you expected to happen.

Return results successfully.

Actual Behavior
What is the result? picture is allowed

Contributor guide

Open the contributing guide

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

Start by running the reproduction with CREATE TABLE, INSERT, and select * from t,t; to observe the coredump. Trace the SELECT and table-resolution path involved in handling the same table twice. Done means the query returns results successfully without crashing, with the reproduction checked again.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.