Skip to content

Commit 4ebe08e

Browse files
authored
ci: 'onlyif http'->'skipif mysql' to cover ttc tests (#19011)
1 parent 3c6a4fe commit 4ebe08e

14 files changed

+162
-162
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
onlyif http
1+
skipif mysql
22
statement ok
33
set max_threads = 8;
44

5-
onlyif http
5+
skipif mysql
66
statement ok
77
SET max_vacuum_temp_files_after_query=0;
88

9-
onlyif http
9+
skipif mysql
1010
statement ok
1111
SET force_aggregate_data_spill = 1;
1212

1313

14-
onlyif http
14+
skipif mysql
1515
query T
1616
SELECT COUNT() FROM (SELECT number::string, count() FROM numbers_mt(100000) group by number::string);
1717
----
1818
100000
1919

20-
onlyif http
20+
skipif mysql
2121
query T
2222
SELECT (SELECT COUNT() FROM system.temp_files) > 1;
2323
----
2424
1
2525

26-
onlyif http
26+
skipif mysql
2727
statement ok
2828
unset max_threads;
2929

30-
onlyif http
30+
skipif mysql
3131
statement ok
3232
unset max_vacuum_temp_files_after_query;
3333

34-
onlyif http
34+
skipif mysql
3535
statement ok
3636
unset force_aggregate_data_spill;

tests/sqllogictests/suites/base/03_common/03_0038_spill_aggregator.test

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
onlyif http
1+
skipif mysql
22
statement ok
33
set max_threads = 8;
44

5-
onlyif http
5+
skipif mysql
66
statement ok
77
SET force_aggregate_data_spill = 1;
88

9-
onlyif http
9+
skipif mysql
1010
query T
1111
SELECT COUNT() FROM (SELECT number::string, count() FROM numbers_mt(100000) group by number::string);
1212
----
1313
100000
1414

15-
onlyif http
15+
skipif mysql
1616
query T
1717
SELECT COUNT() FROM (SELECT number::string FROM numbers_mt(100000) group by number::string);
1818
----
@@ -27,7 +27,7 @@ drop table t2
2727
statement ok
2828
set group_by_shuffle_mode = 'before_partial';
2929

30-
onlyif http
30+
skipif mysql
3131
query T
3232
SELECT COUNT() FROM (SELECT number::string, count() FROM numbers_mt(100000) group by number::string);
3333
----
@@ -36,10 +36,10 @@ SELECT COUNT() FROM (SELECT number::string, count() FROM numbers_mt(100000) grou
3636
statement ok
3737
unset group_by_shuffle_mode;
3838

39-
onlyif http
39+
skipif mysql
4040
statement ok
4141
unset max_threads;
4242

43-
onlyif http
43+
skipif mysql
4444
statement ok
4545
unset force_aggregate_data_spill;

tests/sqllogictests/suites/base/05_ddl/05_0014_ddl_create_role.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ create role 'Public'
3737
statement error 2217
3838
create role 'public'
3939

40-
onlyif http
40+
skipif mysql
4141
statement error 2217
4242
create role 'a"a'
4343

tests/sqllogictests/suites/base/05_ddl/05_0022_ddl_desc_view.test

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CREATE TABLE t(a bigint null, b int null, c varchar(255) null, d smallint not nu
1313
statement ok
1414
CREATE VIEW v AS SELECT * FROM t
1515

16-
onlyif http
16+
skipif mysql
1717
query TTTTT
1818
DESCRIBE VIEW v
1919
----
@@ -23,7 +23,7 @@ c VARCHAR YES NULL (empty)
2323
d SMALLINT NO 0 (empty)
2424
e DATE NO '1970-01-01' (empty)
2525

26-
onlyif http
26+
skipif mysql
2727
query TTTTT
2828
DESC VIEW v
2929
----
@@ -46,7 +46,7 @@ CREATE TABLE t1(a bigint null, b int null, c char(255) null, d smallint not null
4646
statement ok
4747
CREATE VIEW v1 AS SELECT * FROM t1
4848

49-
onlyif http
49+
skipif mysql
5050
query VVVVV
5151
DESCRIBE VIEW v1
5252
----
@@ -57,7 +57,7 @@ d SMALLINT NO 0 (empty)
5757
e DATE NO '1970-01-01' (empty)
5858
f VARCHAR NO '' (empty)
5959

60-
onlyif http
60+
skipif mysql
6161
query VVVVV
6262
DESC VIEW v1
6363
----
@@ -113,21 +113,21 @@ CREATE VIEW v2 AS SELECT c1 AS v2_c1, c2 AS v2_c2 FROM (SELECT t1.c1, t2.c2 from
113113
statement ok
114114
CREATE VIEW v3 AS SELECT * FROM v2 UNION ALL select * from v1
115115

116-
onlyif http
116+
skipif mysql
117117
query VVVVV
118118
DESC VIEW v1
119119
----
120120
c1 VARCHAR YES NULL (empty)
121121
c2 VARCHAR YES NULL (empty)
122122

123-
onlyif http
123+
skipif mysql
124124
query VVVVV
125125
DESC VIEW v2
126126
----
127127
v2_c1 VARCHAR YES NULL (empty)
128128
v2_c2 VARCHAR YES NULL (empty)
129129

130-
onlyif http
130+
skipif mysql
131131
query VVVVV
132132
DESC VIEW v3
133133
----

tests/sqllogictests/suites/base/05_ddl/05_0025_ddl_user_stage.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ select * from '@s10/a b/'
2525
2
2626

2727
# for compatibility with old versions only, should fail in future
28-
onlyif http
28+
skipif mysql
2929
query ??
3030
select * from @s10/a\ b/
3131
----

tests/sqllogictests/suites/base/05_ddl/05_0026_ddl_unset_settings.test

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
1-
onlyif http
1+
skipif mysql
22
query TTTT
33
SELECT name, value, default, level from system.settings where name in ('sql_dialect', 'timezone')
44
----
55
sql_dialect PostgreSQL PostgreSQL DEFAULT
66
timezone UTC UTC DEFAULT
77

8-
onlyif http
8+
skipif mysql
99
statement ok
1010
SET GLOBAL sql_dialect='MySQL'
1111

12-
onlyif http
12+
skipif mysql
1313
statement ok
1414
SET GLOBAL timezone='Asia/Shanghai'
1515

16-
onlyif http
16+
skipif mysql
1717
query TTTT
1818
SELECT name, value, default, level from system.settings where name in ('sql_dialect', 'timezone')
1919
----
2020
sql_dialect MySQL PostgreSQL GLOBAL
2121
timezone Asia/Shanghai UTC GLOBAL
2222

23-
onlyif http
23+
skipif mysql
2424
statement ok
2525
UNSET GLOBAL (timezone)
2626

27-
onlyif http
27+
skipif mysql
2828
statement error 2801
2929
SET stl_dialect='MySQL'
3030

31-
onlyif http
31+
skipif mysql
3232
statement ok
3333
UNSET stl_dialect
3434

35-
onlyif http
35+
skipif mysql
3636
statement ok
3737
UNSET GLOBAL sql_dialect
3838

39-
onlyif http
39+
skipif mysql
4040
query TTTT
4141
SELECT name, value, default, level from system.settings where name in ('sql_dialect', 'timezone')
4242
----
4343
sql_dialect PostgreSQL PostgreSQL DEFAULT
4444
timezone UTC UTC DEFAULT
4545

46-
onlyif http
46+
skipif mysql
4747
statement ok
4848
set DATA_RETENTION_TIME_IN_DAYS=20;
4949

50-
onlyif http
50+
skipif mysql
5151
query TTTTTTT
5252
show settings like 'DATA_RETENTION_TIME_IN_DAYS';
5353
----
5454
data_retention_time_in_days 20 1 [0, 90] SESSION Sets the data retention time in days. UInt64
5555

56-
onlyif http
56+
skipif mysql
5757
statement ok
5858
unset data_retention_time_in_days;
5959

60-
onlyif http
60+
skipif mysql
6161
query TTTTTTT
6262
show settings like 'DATA_RETENTION_TIME_IN_DAYS';
6363
----
6464
data_retention_time_in_days 1 1 [0, 90] DEFAULT Sets the data retention time in days. UInt64
6565

66-
onlyif http
66+
skipif mysql
6767
statement ok
6868
set global load_file_metadata_expire_hours=12;
6969

70-
onlyif http
70+
skipif mysql
7171
query TT
7272
show settings like 'load_file_metadata_expire_hours';
7373
----
7474
load_file_metadata_expire_hours 12 24 [0, 18446744073709551615] GLOBAL Sets the hours that the metadata of files you load data from with COPY INTO will expire in. UInt64
7575

76-
onlyif http
76+
skipif mysql
7777
statement ok
7878
set load_file_metadata_expire_hours=13;
7979

80-
onlyif http
80+
skipif mysql
8181
query TTTTTTT
8282
show settings like 'load_file_metadata_expire_hours';
8383
----
8484
load_file_metadata_expire_hours 13 24 [0, 18446744073709551615] SESSION Sets the hours that the metadata of files you load data from with COPY INTO will expire in. UInt64
8585

86-
onlyif http
86+
skipif mysql
8787
statement ok
8888
unset session load_file_metadata_expire_hours;
8989

90-
onlyif http
90+
skipif mysql
9191
query TTTTTTT
9292
show settings like 'load_file_metadata_expire_hours';
9393
----
9494
load_file_metadata_expire_hours 12 24 [0, 18446744073709551615] GLOBAL Sets the hours that the metadata of files you load data from with COPY INTO will expire in. UInt64
9595

96-
onlyif http
96+
skipif mysql
9797
statement ok
9898
unset load_file_metadata_expire_hours
9999

100-
onlyif http
100+
skipif mysql
101101
query TTTTTTT
102102
show settings like 'load_file_metadata_expire_hours';
103103
----
104104
load_file_metadata_expire_hours 12 24 [0, 18446744073709551615] GLOBAL Sets the hours that the metadata of files you load data from with COPY INTO will expire in. UInt64
105105

106-
onlyif http
106+
skipif mysql
107107
statement ok
108108
unset global load_file_metadata_expire_hours
109109

110-
onlyif http
110+
skipif mysql
111111
query TTTTTTT
112112
show settings like 'load_file_metadata_expire_hours';
113113
----

tests/sqllogictests/suites/base/06_show/06_0013_show_processlist.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SHOW PROCESSLIST LIKE 't%' LIMIT 2
77
statement ok
88
SHOW PROCESSLIST WHERE database='default' LIMIT 2
99

10-
onlyif http
10+
skipif mysql
1111
query B
1212
select count() >= 1 from system.processes where type='HTTPQuery' and host='127.0.0.1';
1313
----

tests/sqllogictests/suites/base/11_data_type/11_0007_data_type_interval.test

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ create or replace table t (c interval);
1515
statement ok
1616
insert into t values('1 year'),('1 months'),('1 day'),('1 hour'),('1 minute'),('1 second'),('1 microsecond');
1717

18-
onlyif http
18+
skipif mysql
1919
query T
2020
select * from t order by c;
2121
----
@@ -27,13 +27,13 @@ select * from t order by c;
2727
1 month
2828
1 year
2929

30-
onlyif http
30+
skipif mysql
3131
query T
3232
select sum(c) from t;
3333
----
3434
9385:01:01.000001
3535

36-
onlyif http
36+
skipif mysql
3737
query T
3838
select sum(c) from t where c <= interval '1 day';
3939
----
@@ -42,49 +42,49 @@ select sum(c) from t where c <= interval '1 day';
4242
statement ok
4343
drop table t;
4444

45-
onlyif http
45+
skipif mysql
4646
query T
4747
select EXTRACT(epoch from '1 day 2 hours 3 minutes'::INTERVAL);
4848
----
4949
93780.0
5050

51-
onlyif http
51+
skipif mysql
5252
query T
5353
select EXTRACT(minute from '1 day 2 hours 3 minutes'::INTERVAL);
5454
----
5555
3
5656

57-
onlyif http
57+
skipif mysql
5858
query T
5959
select EXTRACT(hour from '1 day 48 hours 3600 minutes'::INTERVAL);
6060
----
6161
108
6262

63-
onlyif http
63+
skipif mysql
6464
query T
6565
select EXTRACT(day from '1 day 48 hours 3600 minutes'::INTERVAL);
6666
----
6767
1
6868

69-
onlyif http
69+
skipif mysql
7070
query T
7171
select EXTRACT(second from '1 day 2 hours 3 minutes 200 seconds 100 microsecond'::INTERVAL);
7272
----
7373
20.0001
7474

75-
onlyif http
75+
skipif mysql
7676
query T
7777
select EXTRACT(microsecond from '1 day 2 hours 3 minutes 200 seconds 100 microsecond'::INTERVAL);
7878
----
7979
20000100
8080

81-
onlyif http
81+
skipif mysql
8282
query T
8383
select EXTRACT(month from '3 months 60 day 2 hours 3 minutes 200 seconds 100 microsecond'::INTERVAL);
8484
----
8585
3
8686

87-
onlyif http
87+
skipif mysql
8888
query T
8989
select EXTRACT(year from '1 years 13 months 60 day 2 hours 3 minutes 200 seconds 100 microsecond'::INTERVAL);
9090
----

0 commit comments

Comments
 (0)