-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
pingcap/tiflash
#5839Labels
affects-4.0This bug affects 4.0.x versions.This bug affects 4.0.x versions.affects-5.0This bug affects 5.0.x versions.This bug affects 5.0.x versions.affects-5.1This bug affects 5.1.x versions.This bug affects 5.1.x versions.affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2component/tiflashseverity/criticalsig/executionSIG executionSIG executiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
source [test.txt](https://github.com/pingcap/tidb/files/9391075/test.txt)
alter table PK_HP9202 set tiflash replica 1;
select sleep(5);
select /*+ read_from_storage(tikv[PK_HP9202]) */ count(*) from PK_HP9202 where col1 or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
select /*+ read_from_storage(tiflash[PK_HP9202]) */ count(*) from PK_HP9202 where col1 or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
2. What did you expect to see? (Required)
3. What did you see instead (Required)
MySQL [test]> select /*+ read_from_storage(tikv[PK_HP9202]) */ count(*) from PK_HP9202 where col1 or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
+----------+
| count(*) |
+----------+
| 102 |
+----------+
1 row in set (0.01 sec)
MySQL [test]> select /*+ read_from_storage(tiflash[PK_HP9202]) */ count(*) from PK_HP9202 where col1 or col3 between -8596086079896239827 and -8596086079896239827 and col2 is not null;
+----------+
| count(*) |
+----------+
| 70 |
+----------+
1 row in set (0.03 sec)
4. What is your TiDB version? (Required)
Release Version: v6.3.0-alpha
Edition: Community
Git Commit Hash: 8b5b724d8a932239303a1d0ba547323eb0e5161b
Git Branch: heads/refs/tags/v6.3.0-alpha
UTC Build Time: 2022-08-19 14:31:05
GoVersion: go1.18.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
Metadata
Metadata
Assignees
Labels
affects-4.0This bug affects 4.0.x versions.This bug affects 4.0.x versions.affects-5.0This bug affects 5.0.x versions.This bug affects 5.0.x versions.affects-5.1This bug affects 5.1.x versions.This bug affects 5.1.x versions.affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2component/tiflashseverity/criticalsig/executionSIG executionSIG executiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.