mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Update test
This commit is contained in:
parent
0d2e5f8da8
commit
c0c04eabbc
@ -40,9 +40,9 @@
|
||||
{'str':2}
|
||||
0
|
||||
1
|
||||
4
|
||||
3
|
||||
2
|
||||
3
|
||||
4
|
||||
\N
|
||||
0
|
||||
1
|
||||
@ -84,12 +84,12 @@
|
||||
{'str':4}
|
||||
{'str':3}
|
||||
{'str':2}
|
||||
\N
|
||||
0
|
||||
1
|
||||
4
|
||||
3
|
||||
2
|
||||
3
|
||||
4
|
||||
\N
|
||||
0
|
||||
1
|
||||
2
|
||||
|
@ -28,7 +28,7 @@ insert into test select * from numbers(5);
|
||||
|
||||
set allow_experimental_analyzer=1;
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_group_by=1;
|
||||
set allow_suspicious_types_in_order_by=0;
|
||||
|
||||
select * from test order by d; -- {serverError ILLEGAL_COLUMN}
|
||||
@ -36,6 +36,9 @@ select * from test order by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by map('str', d); -- {serverError ILLEGAL_COLUMN}
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_order_by=1;
|
||||
|
||||
select * from test group by d; -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test group by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select array(d) from test group by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
@ -54,11 +57,11 @@ select * from test group by d;
|
||||
select * from test group by tuple(d);
|
||||
select array(d) from test group by array(d);
|
||||
select map('str', d) from test group by map('str', d);
|
||||
select * from test group by grouping sets ((d), ('str'));
|
||||
select * from test group by grouping sets ((d), ('str')) order by all;
|
||||
|
||||
set allow_experimental_analyzer=0;
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_group_by=1;
|
||||
set allow_suspicious_types_in_order_by=0;
|
||||
|
||||
select * from test order by d; -- {serverError ILLEGAL_COLUMN}
|
||||
@ -66,6 +69,9 @@ select * from test order by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by map('str', d); -- {serverError ILLEGAL_COLUMN}
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_order_by=1;
|
||||
|
||||
select * from test group by d; -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test group by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select array(d) from test group by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
@ -84,7 +90,7 @@ select * from test group by d;
|
||||
select * from test group by tuple(d);
|
||||
select array(d) from test group by array(d);
|
||||
select map('str', d) from test group by map('str', d);
|
||||
select * from test group by grouping sets ((d), ('str'));
|
||||
select * from test group by grouping sets ((d), ('str')) order by all;
|
||||
|
||||
drop table test;
|
||||
|
||||
@ -93,7 +99,7 @@ insert into test select * from numbers(5);
|
||||
|
||||
set allow_experimental_analyzer=1;
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_group_by=1;
|
||||
set allow_suspicious_types_in_order_by=0;
|
||||
|
||||
select * from test order by d; -- {serverError ILLEGAL_COLUMN}
|
||||
@ -101,6 +107,9 @@ select * from test order by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by map('str', d); -- {serverError ILLEGAL_COLUMN}
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_order_by=1;
|
||||
|
||||
select * from test group by d; -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test group by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select array(d) from test group by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
@ -119,11 +128,11 @@ select * from test group by d;
|
||||
select * from test group by tuple(d);
|
||||
select array(d) from test group by array(d);
|
||||
select map('str', d) from test group by map('str', d);
|
||||
select * from test group by grouping sets ((d), ('str'));
|
||||
select * from test group by grouping sets ((d), ('str')) order by all;
|
||||
|
||||
set allow_experimental_analyzer=0;
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_group_by=1;
|
||||
set allow_suspicious_types_in_order_by=0;
|
||||
|
||||
select * from test order by d; -- {serverError ILLEGAL_COLUMN}
|
||||
@ -131,6 +140,9 @@ select * from test order by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test order by map('str', d); -- {serverError ILLEGAL_COLUMN}
|
||||
|
||||
set allow_suspicious_types_in_group_by=0;
|
||||
set allow_suspicious_types_in_order_by=1;
|
||||
|
||||
select * from test group by d; -- {serverError ILLEGAL_COLUMN}
|
||||
select * from test group by tuple(d); -- {serverError ILLEGAL_COLUMN}
|
||||
select array(d) from test group by array(d); -- {serverError ILLEGAL_COLUMN}
|
||||
@ -149,6 +161,6 @@ select * from test group by d;
|
||||
select * from test group by tuple(d);
|
||||
select array(d) from test group by array(d);
|
||||
select map('str', d) from test group by map('str', d);
|
||||
select * from test group by grouping sets ((d), ('str'));
|
||||
select * from test group by grouping sets ((d), ('str')) order by all;
|
||||
|
||||
drop table test;
|
||||
|
Loading…
Reference in New Issue
Block a user