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

planner: set_var(fix_control) is incompatible with binding #50507

Closed
qw4990 opened this issue Jan 17, 2024 · 1 comment · Fixed by #50515
Closed

planner: set_var(fix_control) is incompatible with binding #50507

qw4990 opened this issue Jan 17, 2024 · 1 comment · Fixed by #50515
Labels
affects-7.5 epic/sql-plan-management report/customer Customers have encountered this bug. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@qw4990
Copy link
Contributor

qw4990 commented Jan 17, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(id int, a varchar(100), b int, c int, index idx_ab(a, b));

create global binding using select /*+ set_var(tidb_opt_fix_control='44389:on') */ * from t where c = 10 and (a = 'xx' or (a = 'kk' and b = 1));

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

The binding can be created successfully.

3. What did you see instead (Required)

ERROR 1064 (42000): Optimizer hint syntax error at line 1 column 48 near ":on)*/" 

4. What is your TiDB version? (Required)

+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v8.0.0-alpha-42-g595fa7affc
Edition: Community
Git Commit Hash: 595fa7a
Git Branch: master
UTC Build Time: 2024-01-17 04:09:31
GoVersion: go1.21.0
Race Enabled: false
Check Table Before Drop: false
Store: unistore |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

@seiya-annie
Copy link

/found customer

@ti-chi-bot ti-chi-bot bot added the report/customer Customers have encountered this bug. label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 epic/sql-plan-management report/customer Customers have encountered this bug. 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.

3 participants