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

171 lines
6.1 KiB
Plaintext

TSV
c1 Nullable(String)
c2 Nullable(String)
c3 Nullable(String)
c4 Nullable(String)
42 Some string [1, 2, 3, 4] (1, 2, 3)
42 abcd [] (4, 5, 6)
TSVWithNames
number Nullable(String)
string Nullable(String)
array Nullable(String)
tuple Nullable(String)
42 Some string [1, 2, 3, 4] (1, 2, 3)
42 abcd [] (4, 5, 6)
CSV
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
c4 Array(Nullable(Float64))
\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)
42 String
String 42
c1 Nullable(String)
c2 Nullable(String)
\N [NULL, NULL]
\N []
CSVWithNames
a Nullable(Float64)
b Nullable(String)
c Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
d Array(Nullable(Float64))
\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)
c2 Array(Tuple(Nullable(Float64), Nullable(String)))
c3 Map(String, Nullable(Float64))
c4 Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
c1 Nullable(Float64)
c2 Array(Tuple(Nullable(Float64), Nullable(String)))
c3 Map(String, Nullable(Float64))
c4 Nullable(Bool)
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
32 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} true
JSONCompactEachRowWithNames
a Nullable(Float64)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
JSONEachRow
a Nullable(Float64)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} true
a Nullable(Float64)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
d Nullable(Bool)
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
32 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} true
a Nullable(Float64)
b Nullable(String)
c Array(Nullable(Float64))
1 s1 []
2 \N [2]
\N \N []
\N \N []
\N \N [3]
TSKV
a Nullable(String)
b Nullable(String)
c Nullable(String)
1 s1 \N
2 } [2]
\N \N \N
\N \N \N
\N \N [3]
Values
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Nullable(Float64))
c4 Tuple(Nullable(Float64), Nullable(String))
c5 Tuple(Array(Nullable(Float64)), Array(Tuple(Nullable(Float64), Nullable(String))))
42.42 Some string [1,2,3] (1,'2') ([1,2],[(3,'4'),(5,'6')])
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Nullable(Float64))
c4 Tuple(Nullable(Float64), Nullable(Float64))
c5 Tuple(Array(Nullable(Float64)), Array(Tuple(Nullable(Float64), Nullable(String))))
42.42 \N [1,NULL,3] (1,NULL) ([1,2],[(3,'4'),(5,'6')])
\N Some string [10] (1,2) ([],[])
Regexp
c1 Nullable(String)
c2 Nullable(String)
c3 Nullable(String)
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)]
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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')]
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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')]
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
column_3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
column_3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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)
column_3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
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')]
MsgPack
c1 Nullable(Int64)
c2 Nullable(Int64)
c3 Nullable(Float32)
c4 Nullable(String)
c5 Array(Array(Nullable(Int64)))
c6 Map(Int64, Array(Nullable(Int64)))
\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]}