mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
Add tests
This commit is contained in:
parent
769589dbc9
commit
5c39591ad1
@ -1,3 +1,8 @@
|
||||
number UInt64
|
||||
number UInt64
|
||||
number UInt64
|
||||
\'Biba\' String
|
||||
CAST(dummy, \'Int\') Int32
|
||||
CAST(dummy, \'String\') String
|
||||
0
|
||||
55
|
||||
|
@ -1,9 +1,17 @@
|
||||
create view paramview as select * from system.numbers where number <= {top:UInt64};
|
||||
|
||||
describe paramview; -- { serverError UNSUPPORTED_METHOD }
|
||||
|
||||
describe paramview(top = 10);
|
||||
|
||||
describe paramview(top = 2 + 2);
|
||||
|
||||
create view p2 as select number, {name:String} from system.numbers where number <= {top:UInt64};
|
||||
describe p2(top = 10); -- { serverError UNKNOWN_QUERY_PARAMETER }
|
||||
describe p2(name = 'Biba', top = 2);
|
||||
|
||||
create view p3 as select CAST(dummy, {t:String});
|
||||
describe p3(t = 'Int');
|
||||
describe p3(t = 'String');
|
||||
|
||||
SELECT * FROM p3(t = 'String');
|
||||
|
||||
select arrayReduce('sum', (select groupArray(number) from paramview(top=10)));
|
||||
|
Loading…
Reference in New Issue
Block a user