pingcap / pingcap/tidb

The ScalarSubquery of the FlatPlan may not be cleared in time

Open
#70,450 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Currently, it's possible that a statement reads the ScalarSubquery belongs to previous statement.
We will add examples in comments

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by locating FlatPlan and ScalarSubquery in the TiDB codebase, then investigate how a statement can read a ScalarSubquery from a previous statement. Done should include a confirmed lifecycle fix and the examples in comments mentioned by the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.