Skip to content

Deep nested OR expressions caused compile oom #42788

Closed
@chrysan

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Run a sql with deep nested OR expressions.
img_v2_68600fb7-25ba-4b4f-aa55-d9252b69f4fg

We need:

  1. memory track and threshold

2. What did you expect to see? (Required)

SQL runs normally or is killed due to memory quota.

3. What did you see instead (Required)

TiDB oom.
If we look into the oom dump:
mqqzwGZ14c
y8cdwVNoY5

4. What is your TiDB version? (Required)

v6.5

Metadata

Assignees

Labels

affects-5.4This bug affects the 5.4.x(LTS) versions.affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.severity/majorsig/plannerSIG: Plannertype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions