[BUG] select * from t, t; execute fail
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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