mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add schema inference test
This commit is contained in:
parent
dc8f8a9a18
commit
6ec868a3df
@ -0,0 +1,14 @@
|
||||
1 Str1
|
||||
2 Str2
|
||||
3 Str3
|
||||
4 Str4
|
||||
DEFAULT 03036_archive1.zip::example1.csv id Nullable(Int64), data Nullable(String)
|
||||
DEFAULT 03036_archive1.zip::example2.csv \N
|
||||
21 Str21
|
||||
22 Str22
|
||||
23 Str23
|
||||
24 Str24
|
||||
DEFAULT 03036_archive1.zip::example1.csv id Nullable(Int64), data Nullable(String)
|
||||
DEFAULT 03036_archive1.zip::example2.csv \N
|
||||
UNION 03036_json_archive.zip::example11.jsonl id Nullable(Int64), data Nullable(String)
|
||||
UNION 03036_json_archive.zip::example12.jsonl id Nullable(Int64), data Nullable(String)
|
@ -0,0 +1,6 @@
|
||||
select * from s3(s3_conn, filename='03036_archive1.zip :: example{1,2}.csv') order by tuple(*);
|
||||
select schema_inference_mode, splitByChar('/', source)[-1] as file, schema from system.schema_inference_cache order by file;
|
||||
|
||||
set schema_inference_mode = 'union';
|
||||
select * from s3(s3_conn, filename='03036_json_archive.zip :: example{11,12}.jsonl') order by tuple(*);
|
||||
select schema_inference_mode, splitByChar('/', source)[-1] as file, schema from system.schema_inference_cache order by file;
|
BIN
tests/queries/0_stateless/data_minio/03036_json_archive.zip
Normal file
BIN
tests/queries/0_stateless/data_minio/03036_json_archive.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user