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

IT mysql_test index_merge_sqlgen_exprs failed #33255

Closed
jebter opened this issue Mar 19, 2022 · 1 comment · Fixed by #33302
Closed

IT mysql_test index_merge_sqlgen_exprs failed #33255

jebter opened this issue Mar 19, 2022 · 1 comment · Fixed by #33302
Assignees
Labels

Comments

@jebter
Copy link

jebter commented Mar 19, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_integration_common_test/detail/tidb_ghpr_integration_common_test/10243/pipeline/#step-455-log-172
[2022-03-19T03:08:42.168Z] time="2022-03-19T07:13:26+08:00" level=error msg="run test [index_merge_sqlgen_exprs] err: sql:select /*+ use_index_merge( tbl_0 ) / col_2 from tbl_0 where tbl_0.col_7 < -3 or tbl_0.col_0 between 9060299941946973014 and 7937566432067816132 and interval( left( tbl_0.col_6 , 4 ) , tbl_0.col_7 , tbl_0.col_5 ) order by tbl_0.col_0,tbl_0.col_1,tbl_0.col_2,tbl_0.col_3,tbl_0.col_4,tbl_0.col_5,tbl_0.col_6,tbl_0.col_7 for update;: failed to run query \n"select /+ use_index_merge( tbl_0 ) / col_2 from tbl_0 where tbl_0.col_7 < -3 or tbl_0.col_0 between 9060299941946973014 and 7937566432067816132 and interval( left( tbl_0.col_6 , 4 ) , tbl_0.col_7 , tbl_0.col_5 ) order by tbl_0.col_0,tbl_0.col_1,tbl_0.col_2,tbl_0.col_3,tbl_0.col_4,tbl_0.col_5,tbl_0.col_6,tbl_0.col_7 for update;" \n around line 71, \nwe need(468):\niFv\t13809\t2000-07-29 00:00:00\t53\ntHsbZRjxAwnw\t7068\t2029-06-15 00:00:00\t94\nKmxI\t17383\t2014-08-30 00:00:00\t103\nXB\t16463\t1975-06-16 00:00:00\t58\nCSfkFohsVVxSAZWEXe\t-30899\t1979-07-01 00:00:00\t78\nDGXqwpzwVGqMZ\t-31276\t2007-12-01 00:00:00\t86\nVRuSqf\t10983\t1974-12-13 00:00:00\t83\nselect /+ use_index_merge( tbl_0 ) / col_2 from tbl_0 where tbl_0.col_7 < -3 or tbl_0.col_0 between 9060299941946973014 and 7937566432067816132 and interval( left( tbl_0.col_6 , 4 ) , tbl_0.col_7 \nbut got(468):\nselect /+ use_index_merge( tbl_0 ) */ col_2 from tbl_0 where tbl_0.col_7 < -3 or tbl_0.col_0 between 9060299941946973014 and 7937566432067816132 and interval( left( tbl_0.col_6 , 4 ) , tbl_0.col_7 , tbl_0.col_5 ) order by tbl_0.col_0,tbl_0.col_1,tbl_0.col_2,tbl_0.col_3,tbl_0.col_4,tbl_0.col_5,tbl_0.col_6,tbl_0.col_7 for update;\ncol_2\n09:46:09\n05:44:03\n22:55:33\n03:53:30\n10:33:55\n13:15:41\n16:22:13\n23:00:00\n04:53:52\n23:47:01\n15:01:45\nNULL\n13:02:53\n02:36:32\n21:00:17\n\n"

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master & v6.0.0

@jebter jebter added type/bug The issue is confirmed as a bug. severity/major affects-6.0 labels Mar 19, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. labels Mar 19, 2022
@jebter jebter removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. labels Mar 19, 2022
@guo-shaoge guo-shaoge self-assigned this Mar 21, 2022
@guo-shaoge
Copy link
Collaborator

Introduced by #32553. I added this case in ci, but it needs tikv to reproduce this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants