From d74a5139e0234191ccde8d376a75c3a17cc109f0 Mon Sep 17 00:00:00 2001 From: Lloyd-Pottiger Date: Tue, 16 May 2023 17:00:45 +0800 Subject: [PATCH] move tests Signed-off-by: Lloyd-Pottiger --- ...ration_filter_push_down_to_table_scan.test | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 tests/fullstack-test-dt/expr/duration_filter_push_down_to_table_scan.test diff --git a/tests/fullstack-test-dt/expr/duration_filter_push_down_to_table_scan.test b/tests/fullstack-test-dt/expr/duration_filter_push_down_to_table_scan.test deleted file mode 100644 index 58e8c4b5208..00000000000 --- a/tests/fullstack-test-dt/expr/duration_filter_push_down_to_table_scan.test +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2023 PingCAP, Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -mysql> drop table if exists test.t; -mysql> create table if not exists test.t(a time(4), i int); - -# insert more than 8192 rows to make sure filter conditions can be pushed down. -mysql> insert into test.t values('-700:10:10.123456', 1), ('700:11:11.123500', 2), ('600:11:11.123500', 3); -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; -mysql> insert into test.t select * from test.t; - -mysql> alter table test.t set tiflash replica 1; - -func> wait_table test t - -mysql> select * from test.t where a = '500:11:11.123500'; -# success, but the result is empty -mysql> select hour(a), i from test.t where a = '500:11:11.123500'; -mysql> select minute(a), i from test.t where a = '500:11:11.123500'; -mysql> select second(a), i from test.t where a = '500:11:11.123500'; -mysql> select a, i from test.t where hour(a) = 500; -mysql> select a, i from test.t where minute(a) = 13; -mysql> select a, i from test.t where second(a) = 14; - -mysql> drop table test.t;