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

IndexMerge didn't check if pushdown is enabled or not #30195

Closed
guo-shaoge opened this issue Nov 27, 2021 · 1 comment
Closed

IndexMerge didn't check if pushdown is enabled or not #30195

guo-shaoge opened this issue Nov 27, 2021 · 1 comment
Labels
type/bug The issue is confirmed as a bug.

Comments

@guo-shaoge
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table t1;
create table t1(c1 varchar(100), c2 varchar(100), key(c1), key(c2), c3 varchar(100));
insert into t1 values('ab', '10', '10');
explain select /*+ use_index_merge(t1) */ * from t1 where c1 = 'ab' or c2 = '10' and substring(c3, 10) = 10;
select /*+ use_index_merge(t1) */ * from t1 where c1 = 'ab' or c2 = '10' and substring(c3, 10) = 10;
<!-- a step by step guide for reproducing the bug. -->

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

mysql> select /*+ use_index_merge(t1) */ * from t1 where c1 = 'ab' or c2 = '10' and substring(c3, 10) = 10;
+------+------+------+
| c1   | c2   | c3   |
+------+------+------+
| ab   | 10   | 10   |
+------+------+------+

3. What did you see instead (Required)

[components/tidb_query_expr/src/lib.rs:705]: ScalarFunction Substring2ArgsUtf8 is not supported in batch mode

4. What is your TiDB version? (Required)

master

@guo-shaoge guo-shaoge added the type/bug The issue is confirmed as a bug. label Nov 27, 2021
@aytrack
Copy link
Contributor

aytrack commented Nov 29, 2021

duplicated with #30200

@aytrack aytrack closed this as completed Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants