Added tests to check that ClickHouse don't crash on insufficient arguments of S3, URL and HDFS storages.

This commit is contained in:
Vladimir Chebotarev 2019-11-05 01:47:26 +03:00
parent 9869ee141c
commit 8556b2cee3
6 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,8 @@
drop table if exists test_table_hdfs_syntax
;
create table test_table_hdfs_syntax (id UInt32) ENGINE = HDFS('')
; -- { serverError 42 }
create table test_table_hdfs_syntax (id UInt32) ENGINE = HDFS('','','')
; -- { serverError 42 }
drop table if exists test_table_hdfs_syntax
;

View File

@ -0,0 +1,8 @@
drop table if exists test_table_s3_syntax
;
create table test_table_s3_syntax (id UInt32) ENGINE = S3('')
; -- { serverError 42 }
create table test_table_s3_syntax (id UInt32) ENGINE = S3('','','')
; -- { serverError 42 }
drop table if exists test_table_s3_syntax
;

View File

@ -0,0 +1,8 @@
drop table if exists test_table_url_syntax
;
create table test_table_url_syntax (id UInt32) ENGINE = URL('')
; -- { serverError 42 }
create table test_table_url_syntax (id UInt32) ENGINE = URL('','','')
; -- { serverError 42 }
drop table if exists test_table_url_syntax
;