ClickHouse/tests/queries/0_stateless/02149_schema_inference.reference

171 lines
6.1 KiB
Plaintext
Raw Normal View History

2021-12-16 18:48:38 +00:00
TSV
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Nullable(Int64))
c4 Tuple(Nullable(Int64), Nullable(Int64), Nullable(Int64))
42 Some string [1,2,3,4] (1,2,3)
42 abcd [] (4,5,6)
2021-12-16 18:48:38 +00:00
TSVWithNames
2022-07-20 14:17:25 +00:00
number Nullable(Int64)
2021-12-16 18:48:38 +00:00
string Nullable(String)
2022-07-20 14:17:25 +00:00
array Array(Nullable(Int64))
tuple Tuple(Nullable(Int64), Nullable(Int64), Nullable(Int64))
42 Some string [1,2,3,4] (1,2,3)
42 abcd [] (4,5,6)
2021-12-16 18:48:38 +00:00
CSV
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
2022-07-20 14:17:25 +00:00
c4 Array(Nullable(Int64))
2021-12-16 18:48:38 +00:00
\N Some string [([1,2.3],'String'),([],NULL)] [1,NULL,3]
42 \N [([1,2.3],'String'),([3],'abcd')] [4,5,6]
c1 Nullable(String)
c2 Nullable(String)
2021-12-16 18:48:38 +00:00
42 String
String 42
c1 Nullable(String)
c2 Nullable(String)
2021-12-16 18:48:38 +00:00
\N [NULL, NULL]
\N []
CSVWithNames
2022-07-20 14:17:25 +00:00
a Nullable(Int64)
2021-12-16 18:48:38 +00:00
b Nullable(String)
c Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
2022-07-20 14:17:25 +00:00
d Array(Nullable(Int64))
2021-12-16 18:48:38 +00:00
\N Some string [([1,2.3],'String'),([],NULL)] [1,NULL,3]
42 \N [([1,2.3],'String'),([3],'abcd')] [4,5,6]
JSONCompactEachRow
c1 Nullable(Float64)
2022-07-20 14:17:25 +00:00
c2 Array(Tuple(Nullable(Int64), Nullable(String)))
c3 Map(String, Nullable(Int64))
2022-04-02 11:45:48 +00:00
c4 Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Array(Tuple(Nullable(Int64), Nullable(String)))
c3 Map(String, Nullable(Int64))
2022-04-02 11:45:48 +00:00
c4 Nullable(Bool)
2021-12-16 18:48:38 +00:00
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
2022-04-02 11:45:48 +00:00
32 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} true
2021-12-16 18:48:38 +00:00
JSONCompactEachRowWithNames
a Nullable(Float64)
2022-07-20 14:17:25 +00:00
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Map(String, Nullable(Int64))
2022-04-02 11:45:48 +00:00
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
2021-12-16 18:48:38 +00:00
JSONEachRow
2022-03-31 11:14:30 +00:00
a Nullable(Float64)
2022-07-20 14:17:25 +00:00
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Map(String, Nullable(Int64))
2022-04-02 11:45:48 +00:00
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
2022-07-20 14:17:25 +00:00
a Nullable(Int64)
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Map(String, Nullable(Int64))
d Nullable(Bool)
2021-12-16 18:48:38 +00:00
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
32 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} true
2022-07-20 14:17:25 +00:00
a Nullable(Int64)
2021-12-16 18:48:38 +00:00
b Nullable(String)
2022-07-20 14:17:25 +00:00
c Array(Nullable(Int64))
2022-03-31 11:14:30 +00:00
1 s1 []
2 \N [2]
\N \N []
\N \N []
\N \N [3]
2021-12-16 18:48:38 +00:00
TSKV
2022-07-20 14:17:25 +00:00
a Nullable(Int64)
2021-12-16 18:48:38 +00:00
b Nullable(String)
2022-07-20 14:17:25 +00:00
c Array(Nullable(Int64))
2022-04-07 12:17:48 +00:00
1 s1 []
2022-03-31 11:14:30 +00:00
2 } [2]
2022-04-07 12:17:48 +00:00
\N \N []
\N \N []
2022-03-31 11:14:30 +00:00
\N \N [3]
2021-12-16 18:48:38 +00:00
Values
c1 Nullable(Float64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Nullable(Int64))
c4 Tuple(Nullable(Int64), Nullable(String))
c5 Tuple(Array(Nullable(Int64)), Array(Tuple(Nullable(Int64), Nullable(String))))
2021-12-16 18:48:38 +00:00
42.42 Some string [1,2,3] (1,'2') ([1,2],[(3,'4'),(5,'6')])
c1 Nullable(Float64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Nullable(Int64))
c4 Tuple(Nullable(Int64), Nullable(Int64))
c5 Tuple(Array(Nullable(Int64)), Array(Tuple(Nullable(Int64), Nullable(String))))
2021-12-16 18:48:38 +00:00
42.42 \N [1,NULL,3] (1,NULL) ([1,2],[(3,'4'),(5,'6')])
\N Some string [10] (1,2) ([],[])
Regexp
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
c3 Nullable(String)
2021-12-16 18:48:38 +00:00
42 Some string 1 [([1, 2, 3], String 1), ([], String 1)]
2 Some string 2 [([4, 5, 6], String 2), ([], String 2)]
312 Some string 3 [([1, 2, 3], String 2), ([], String 2)]
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42 Some string 1 [([1,2,3],'String 1'),([],'String 1')]
3 Some string 2 [([3,5,1],'String 2'),([],'String 2')]
244 Some string 3 [([],'String 3'),([],'String 3')]
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42 Some string 1 [([1,2,3],'String 1'),([],'String 1')]
2 Some string 2 [([],'String 2'),([],'String 2')]
43 Some string 3 [([1,5,3],'String 3'),([],'String 3')]
2022-07-20 14:17:25 +00:00
c1 Nullable(Int64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
52 Some string 2 [([],'String 2'),([1],'String 2')]
24 Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
CustomSeparated
c1 Nullable(Float64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
c1 Nullable(Float64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
c1 Nullable(Float64)
c2 Nullable(String)
2022-07-20 14:17:25 +00:00
c3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
Template
column_1 Nullable(Float64)
column_2 Nullable(String)
2022-07-20 14:17:25 +00:00
column_3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
column_1 Nullable(Float64)
column_2 Nullable(String)
2022-07-20 14:17:25 +00:00
column_3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
column_1 Nullable(Float64)
column_2 Nullable(String)
2022-07-20 14:17:25 +00:00
column_3 Array(Tuple(Array(Nullable(Int64)), Nullable(String)))
2021-12-16 18:48:38 +00:00
42.42 Some string 1 [([1,2,3],'String 1'),([1],'String 1')]
42 Some string 2 [([],'String 2'),([],'String 2')]
\N Some string 3 [([1,2,3],'String 3'),([1],'String 3')]
2021-12-17 15:34:13 +00:00
MsgPack
c1 Nullable(Int64)
c2 Nullable(Int64)
c3 Nullable(Float32)
c4 Nullable(String)
c5 Array(Array(Nullable(Int64)))
c6 Map(Int64, Array(Nullable(Int64)))
2021-12-17 15:34:13 +00:00
\N 0 0 Str: 0 [[0,1],[0]] {0:[0,1]}
1 \N 1 Str: 1 [[1,2],[1]] {1:[1,2]}
\N 2 2 Str: 2 [[2,3],[2]] {2:[2,3]}