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

171 lines
6.4 KiB
Plaintext
Raw Normal View History

2021-12-16 18:48:38 +00:00
TSV
column_1 Nullable(String)
column_2 Nullable(String)
column_3 Nullable(String)
column_4 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
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
column_4 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]
column_1 Nullable(String)
column_2 Nullable(String)
42 String
String 42
column_1 Nullable(String)
column_2 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
column_1 Nullable(Float64)
column_2 Array(Tuple(Nullable(Float64), Nullable(String)))
column_3 Map(String, Nullable(Float64))
column_4 Nullable(UInt8)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} 1
column_1 Nullable(Float64)
column_2 Array(Tuple(Nullable(Float64), Nullable(String)))
column_3 Map(String, Nullable(Float64))
column_4 Nullable(UInt8)
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
32 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} 1
JSONCompactEachRowWithNames
a Nullable(Float64)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
d Nullable(UInt8)
42.42 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} 1
JSONEachRow
d Nullable(UInt8)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
a Nullable(Float64)
1 [(1,'String'),(2,'abcd')] {'key':42,'key2':24} 42.42
d Nullable(UInt8)
b Array(Tuple(Nullable(Float64), Nullable(String)))
c Map(String, Nullable(Float64))
a Nullable(Float64)
\N [(1,'String'),(2,NULL)] {'key':NULL,'key2':24} \N
1 [(2,'String 2'),(3,'hello')] {'key3':4242,'key4':2424} 32
b Nullable(String)
c Array(Nullable(Float64))
a Nullable(Float64)
s1 [] 1
\N [2] 2
\N [] \N
\N [] \N
\N [3] \N
TSKV
b Nullable(String)
c Nullable(String)
a Nullable(String)
s1 \N 1
} [2] 2
\N \N \N
\N \N \N
\N [3] \N
Values
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 Array(Nullable(Float64))
column_4 Tuple(Nullable(Float64), Nullable(String))
column_5 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')])
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 Array(Nullable(Float64))
column_4 Tuple(Nullable(Float64), Nullable(Float64))
column_5 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
column_1 Nullable(String)
column_2 Nullable(String)
column_3 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)]
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 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')]
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 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')]
column_1 Nullable(Float64)
column_2 Nullable(String)
column_3 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
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')]
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')]
2021-12-17 15:34:13 +00:00
MsgPack
column_1 Nullable(Int64)
column_2 Nullable(Int64)
column_3 Nullable(Float32)
column_4 Nullable(String)
column_5 Array(Array(Nullable(Int64)))
column_6 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]}