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

planner: fix the cost model version in explain-tests #38728

Merged
merged 8 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/explaintest/r/access_path_selection.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `access_path_selection` (
`a` int,
`b` int,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/agg_predicate_pushdown.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop database if exists agg_predicate_pushdown;
create database agg_predicate_pushdown;
create table t(a int, b int, c int);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/black_list.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t (a int);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/clustered_index.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@tidb_enable_outer_join_reorder=true;
drop database if exists with_cluster_index;
create database with_cluster_index;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_agg_func_disabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_agg_func;
use collation_agg_func;
create table t(id int, value varchar(20) charset utf8mb4 collate utf8mb4_general_ci, value1 varchar(20) charset utf8mb4 collate utf8mb4_bin);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_agg_func_enabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_agg_func;
use collation_agg_func;
create table t(id int, value varchar(20) charset utf8mb4 collate utf8mb4_general_ci, value1 varchar(20) charset utf8mb4 collate utf8mb4_bin);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_check_use_collation;
use collation_check_use_collation;
CREATE TABLE `t` (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_check_use_collation;
use collation_check_use_collation;
CREATE TABLE `t` (
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_misc_disabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_misc;
use collation_misc;
create table t1(a varchar(20) charset utf8);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_misc_enabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_misc;
use collation_misc;
create table t1(a varchar(20) charset utf8);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_pointget_disabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_point_get;
use collation_point_get;
drop table if exists t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/collation_pointget_enabled.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
create database collation_point_get;
use collation_point_get;
drop table if exists t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/common_collation.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t(a char(10) collate utf8mb4_unicode_ci, b char(10) collate utf8mb4_general_ci);
insert into t values ('啊', '撒旦');
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/cte.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists tbl_0;
create table tbl_0(a int);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain-non-select-stmt.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t(a bigint, b bigint);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (id int, c1 timestamp);
show columns from t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_complex.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `dt` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT ,
`aid` varchar(32) NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_complex_stats.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists dt;
CREATE TABLE dt (
id int(11) unsigned NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_cte.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2;
create table t1 (c1 int primary key, c2 int, index c2 (c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_easy.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2, t3, t4;
create table t1 (c1 int primary key, c2 int, c3 int, index c2 (c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_easy_stats.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2, t3;
create table t1 (c1 int primary key, c2 int, c3 int, index c2 (c2));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set names utf8mb4;
use test;
drop table if exists t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_indexmerge.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (a int primary key, b int, c int, d int, e int, f int);
create index tb on t (b);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_join_stats.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists e, lo;
create table e(a int, b int, key idx_a(a), key idx_b(b)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_shard_index.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists test3, test5;
create table test3(id int primary key clustered, a int, b int, unique key uk_expr((tidb_shard(a)),a));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_stats.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (id int, c1 timestamp);
load stats 's/explain_stats_t.json';
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/explain_union_scan.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists city;
CREATE TABLE `city` (
`id` varchar(70) NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/generated_columns.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
DROP TABLE IF EXISTS person;
CREATE TABLE person (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/imdbload.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE DATABASE IF NOT EXISTS `imdbload`;
USE `imdbload`;
CREATE TABLE `kind_type` (
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/index_join.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2;
create table t1(a bigint, b bigint, index idx(a));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/index_merge.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
///// SUBQUERY
drop table if exists t1;
create table t1(c1 int, c2 int, c3 int, key(c1), key(c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/naaj.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
set @@session.tidb_enable_null_aware_anti_join=1;
select "***************************************************** PART 1 *****************************************************************" as name;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/new_character_set.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
set names utf8mb4;
create table t (a varchar(255) charset utf8mb4);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/new_character_set_builtin.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set names utf8mb4;
set @@sql_mode = '';
drop table if exists t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/new_character_set_invalid.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@sql_mode = 'strict_trans_tables';
drop table if exists t;
create table t (a varchar(255) charset gbk, b varchar(255) charset ascii, c varchar(255) charset utf8);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/select.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@tidb_enable_outer_join_reorder=true;
DROP TABLE IF EXISTS t;
CREATE TABLE t (
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/show.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
show tables like '%xx';
Tables_in_test (%xx)
show databases like '%xx';
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/subquery.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t1;
drop table if exists t2;
create table t1(a bigint, b bigint);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/topn_push_down.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `tr` (
`id` bigint(20) NOT NULL,
`biz_date` date NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/topn_pushdown.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
explain format = 'brief' select * from ((select 4 as a) union all (select 33 as a)) tmp order by a desc limit 1;
id estRows task access object operator info
TopN 1.00 root Column#3:desc, offset:0, count:1
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/tpch.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE DATABASE IF NOT EXISTS TPCH;
USE TPCH;
CREATE TABLE IF NOT EXISTS nation ( N_NATIONKEY INTEGER NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/vitess_hash.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t(
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/r/window_function.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t (a int, b int, c timestamp, index idx(a));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/access_path_selection.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `access_path_selection` (
`a` int,
`b` int,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/agg_predicate_pushdown.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop database if exists agg_predicate_pushdown;
create database agg_predicate_pushdown;

Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/black_list.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t (a int);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/clustered_index.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@tidb_enable_outer_join_reorder=true;
drop database if exists with_cluster_index;
create database with_cluster_index;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/collation_agg_func.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# These tests test the aggregate function's behavior according to collation.
# The result of min/max of enum/set is wrong, please fix them soon.

Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/collation_check_use_collation.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# These tests check that the used collation is correct.

# prepare database
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/collation_misc.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# prepare database
create database collation_misc;
use collation_misc;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/collation_pointget.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# prepare database
create database collation_point_get;
use collation_point_get;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/common_collation.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
--disable_warnings
drop table if exists t;
--enable_warnings
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/cte.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
# case 1
drop table if exists tbl_0;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain-non-select-stmt.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t;
create table t(a bigint, b bigint);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (id int, c1 timestamp);
show columns from t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_complex.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `dt` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT ,
`aid` varchar(32) NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_complex_stats.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists dt;
CREATE TABLE dt (
id int(11) unsigned NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_cte.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2;
create table t1 (c1 int primary key, c2 int, index c2 (c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_easy.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2, t3, t4;
create table t1 (c1 int primary key, c2 int, c3 int, index c2 (c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_easy_stats.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2, t3;
create table t1 (c1 int primary key, c2 int, c3 int, index c2 (c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_generate_column_substitute.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set names utf8mb4;
use test;
drop table if exists t;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_indexmerge.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (a int primary key, b int, c int, d int, e int, f int);
create index tb on t (b);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_join_stats.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists e, lo;
create table e(a int, b int, key idx_a(a), key idx_b(b)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_shard_index.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists test3, test5;
create table test3(id int primary key clustered, a int, b int, unique key uk_expr((tidb_shard(a)),a));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_stats.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t;
create table t (id int, c1 timestamp);
load stats 's/explain_stats_t.json';
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/explain_union_scan.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists city;

CREATE TABLE `city` (
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/generated_columns.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
-- Tests of using stored generated column as index and partition column.
-- Most of the cases are ported from other tests to make sure generated columns behaves the same.

Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/imdbload.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE DATABASE IF NOT EXISTS `imdbload`;
USE `imdbload`;
-- The table schema is converted from imdb dataset using IMDbPY
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/index_join.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
use test;
drop table if exists t1, t2;
create table t1(a bigint, b bigint, index idx(a));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/index_merge.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
--echo ///// SUBQUERY
drop table if exists t1;
create table t1(c1 int, c2 int, c3 int, key(c1), key(c2));
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/naaj.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# naaj.test file is for null-aware anti join
use test;
set @@session.tidb_enable_null_aware_anti_join=1;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/new_character_set.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
-- @@character_set_results = 'gbk', TiDB transforms row value into GBK charset.
drop table if exists t;
set names utf8mb4;
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/new_character_set_builtin.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set names utf8mb4;
set @@sql_mode = '';
-- test for builtin function hex(), length(), ascii(), octet_length()
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/new_character_set_invalid.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@sql_mode = 'strict_trans_tables';
drop table if exists t;
create table t (a varchar(255) charset gbk, b varchar(255) charset ascii, c varchar(255) charset utf8);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/select.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
set @@tidb_enable_outer_join_reorder=true;
DROP TABLE IF EXISTS t;

Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/show.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
# test show output field name
show tables like '%xx';
show databases like '%xx';
1 change: 1 addition & 0 deletions cmd/explaintest/t/subquery.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
drop table if exists t1;
drop table if exists t2;
create table t1(a bigint, b bigint);
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/topn_push_down.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
CREATE TABLE `tr` (
`id` bigint(20) NOT NULL,
`biz_date` date NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions cmd/explaintest/t/topn_pushdown.test
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
set tidb_cost_model_version=1;
explain format = 'brief' select * from ((select 4 as a) union all (select 33 as a)) tmp order by a desc limit 1;
1 change: 1 addition & 0 deletions cmd/explaintest/t/tpch.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set tidb_cost_model_version=1;
-- http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf
CREATE DATABASE IF NOT EXISTS TPCH;
USE TPCH;
Expand Down
Loading