@@ -733,6 +733,10 @@ func TestUpdateErrorRate(t *testing.T) {
733
733
734
734
testKit := testkit .NewTestKit (t , store )
735
735
testKit .MustExec ("use test" )
736
+
737
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
738
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
739
+
736
740
testKit .MustExec ("set @@session.tidb_analyze_version = 0" )
737
741
testKit .MustExec ("create table t (a bigint(64), b bigint(64), primary key(a), index idx(b))" )
738
742
err := h .HandleDDLEvent (<- h .DDLEventCh ())
@@ -916,6 +920,10 @@ func TestQueryFeedback(t *testing.T) {
916
920
defer clean ()
917
921
testKit := testkit .NewTestKit (t , store )
918
922
testKit .MustExec ("use test" )
923
+
924
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
925
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
926
+
919
927
testKit .MustExec ("set @@session.tidb_analyze_version = 0" )
920
928
testKit .MustExec ("create table t (a bigint(64), b bigint(64), primary key(a), index idx(b))" )
921
929
testKit .MustExec ("insert into t values (1,2),(2,2),(4,5)" )
@@ -1174,6 +1182,10 @@ func TestUpdateStatsByLocalFeedback(t *testing.T) {
1174
1182
defer clean ()
1175
1183
testKit := testkit .NewTestKit (t , store )
1176
1184
testKit .MustExec ("use test" )
1185
+
1186
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
1187
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
1188
+
1177
1189
testKit .MustExec ("set @@session.tidb_analyze_version = 0" )
1178
1190
testKit .MustExec (`set @@tidb_partition_prune_mode='` + string (variable .Static ) + `'` )
1179
1191
testKit .MustExec ("create table t (a bigint(64), b bigint(64), primary key(a), index idx(b))" )
@@ -1613,6 +1625,10 @@ func TestIndexQueryFeedback4TopN(t *testing.T) {
1613
1625
handle .MinLogErrorRate .Store (0 )
1614
1626
1615
1627
testKit .MustExec ("use test" )
1628
+
1629
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
1630
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
1631
+
1616
1632
testKit .MustExec ("set @@session.tidb_analyze_version = 0" )
1617
1633
testKit .MustExec ("create table t (a bigint(64), index idx(a))" )
1618
1634
for i := 0 ; i < 20 ; i ++ {
@@ -1664,6 +1680,10 @@ func TestAbnormalIndexFeedback(t *testing.T) {
1664
1680
handle .MinLogErrorRate .Store (0 )
1665
1681
1666
1682
testKit .MustExec ("use test" )
1683
+
1684
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
1685
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
1686
+
1667
1687
testKit .MustExec ("create table t (a bigint(64), b bigint(64), index idx_ab(a,b))" )
1668
1688
for i := 0 ; i < 20 ; i ++ {
1669
1689
testKit .MustExec (fmt .Sprintf ("insert into t values (%d, %d)" , i / 5 , i ))
@@ -1741,6 +1761,10 @@ func TestFeedbackRanges(t *testing.T) {
1741
1761
handle .MinLogErrorRate .Store (0 )
1742
1762
1743
1763
testKit .MustExec ("use test" )
1764
+
1765
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
1766
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
1767
+
1744
1768
testKit .MustExec ("create table t (a tinyint, b tinyint, primary key(a), index idx(a, b))" )
1745
1769
for i := 0 ; i < 20 ; i ++ {
1746
1770
testKit .MustExec (fmt .Sprintf ("insert into t values (%d, %d)" , i , i ))
@@ -1820,6 +1844,10 @@ func TestUnsignedFeedbackRanges(t *testing.T) {
1820
1844
handle .MinLogErrorRate .Store (0 )
1821
1845
1822
1846
testKit .MustExec ("use test" )
1847
+
1848
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
1849
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
1850
+
1823
1851
testKit .MustExec ("set @@session.tidb_analyze_version = 0" )
1824
1852
testKit .MustExec ("create table t (a tinyint unsigned, primary key(a))" )
1825
1853
testKit .MustExec ("create table t1 (a bigint unsigned, primary key(a))" )
@@ -2013,6 +2041,10 @@ func TestFeedbackCounter(t *testing.T) {
2013
2041
err := metrics .StoreQueryFeedbackCounter .WithLabelValues (metrics .LblOK ).Write (oldNum )
2014
2042
require .NoError (t , err )
2015
2043
testKit .MustExec ("use test" )
2044
+
2045
+ // TODO(tiancaiamao): query feedback is broken when paging is on.
2046
+ testKit .MustExec ("set @@tidb_enable_paging = off" )
2047
+
2016
2048
testKit .MustExec ("create table t (a int, b int, index idx_a(a))" )
2017
2049
testKit .MustExec ("insert into t values (1, 1), (2, 2), (3, 3), (5, 5)" )
2018
2050
testKit .MustExec ("analyze table t with 0 topn" )
0 commit comments