Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal session cannot parse SQLs containing window functions #55981

Closed
kaixu120811 opened this issue Sep 10, 2024 · 2 comments · Fixed by #55991
Closed

Internal session cannot parse SQLs containing window functions #55981

kaixu120811 opened this issue Sep 10, 2024 · 2 comments · Fixed by #55991
Assignees
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@kaixu120811
Copy link
Collaborator

kaixu120811 commented Sep 10, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

A clean cluster.
Create a binding for an SQL containing window function.
Shutdown and reboot the TiDB

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

The binding is loaded correctly.

3. What did you see instead (Required)

No binding is read to TiDB's memory.

4. What is your TiDB version? (Required)

Version 6.5.7

@kaixu120811 kaixu120811 added the type/bug The issue is confirmed as a bug. label Sep 10, 2024
@jackysp jackysp added the sig/planner SIG: Planner label Sep 10, 2024
@kaixu120811
Copy link
Collaborator Author

For someone who will be the owner of this bug fix, please contact Damon to get some information about bug repro.

@hawkingrei hawkingrei self-assigned this Sep 10, 2024
@jebter jebter added the affects-6.5 This bug affects the 6.5.x(LTS) versions. label Sep 10, 2024
@winoros winoros changed the title The binding information won't be synced to every tidb server of TiDB cluster when it's set by mysql client. Internal session cannot parse SQLs containing window functions Sep 10, 2024
@winoros winoros added severity/major affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. labels Sep 10, 2024
@ti-chi-bot ti-chi-bot bot added may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 labels Sep 10, 2024
@hawkingrei hawkingrei removed the may-affects-5.4 This bug maybe affects 5.4.x versions. label Sep 10, 2024
@winoros winoros added the affects-6.1 This bug affects the 6.1.x(LTS) versions. label Sep 10, 2024
@winoros
Copy link
Member

winoros commented Sep 10, 2024

6.1 6.5 7.1 7.5 will have a problem with loading the binding.
8.1 and master is fine with binding. But still doesn't set the EnableWindowFunction correctly for some internal session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants