ClickHouse/tests/queries/0_stateless/02149_schema_inference.reference
Alexey Milovidov 362133af1f Update tests
2024-01-05 01:54:05 +01:00

171 lines
6.1 KiB
Plaintext

TSV
c1 Nullable(Int64)
c2 Nullable(String)
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)
TSVWithNames
number Nullable(Int64)
string Nullable(String)
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)
CSV
c1 Nullable(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
c4 Array(Nullable(Int64))
\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(Int64)
b Nullable(String)
c Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
d Array(Nullable(Int64))
\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(Int64), Nullable(String)))
c3 Tuple(\n key Nullable(Int64),\n key2 Nullable(Int64))
c4 Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] (42,24) true
c1 Nullable(Int64)
c2 Array(Tuple(Nullable(Int64), Nullable(String)))
c3 Tuple(\n key1 Nullable(Int64),\n key2 Nullable(Int64))
c4 Nullable(Bool)
\N [(1,'String'),(2,NULL)] (NULL,24) \N
32 [(2,'String 2'),(3,'hello')] (4242,2424) true
JSONCompactEachRowWithNames
a Nullable(Float64)
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Tuple(\n key Nullable(Int64),\n key2 Nullable(Int64))
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] (42,24) true
JSONEachRow
a Nullable(Float64)
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Tuple(\n key Nullable(Int64),\n key2 Nullable(Int64))
d Nullable(Bool)
42.42 [(1,'String'),(2,'abcd')] (42,24) true
a Nullable(Int64)
b Array(Tuple(Nullable(Int64), Nullable(String)))
c Tuple(\n key1 Nullable(Int64),\n key2 Nullable(Int64))
d Nullable(Bool)
\N [(1,'String'),(2,NULL)] (NULL,24) \N
32 [(2,'String 2'),(3,'hello')] (4242,2424) true
a Nullable(Int64)
b Nullable(String)
c Array(Nullable(Int64))
1 s1 []
2 \N [2]
\N \N []
\N \N []
\N \N [3]
TSKV
a Nullable(Int64)
b Nullable(String)
c Array(Nullable(Int64))
1 s1 []
2 } [2]
\N \N []
\N \N []
\N \N [3]
Values
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Nullable(Int64))
c4 Tuple(Nullable(Int64), Nullable(String))
c5 Tuple(Array(Nullable(Int64)), Array(Tuple(Nullable(Int64), 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(Int64))
c4 Tuple(Nullable(Int64), Nullable(Int64))
c5 Tuple(Array(Nullable(Int64)), Array(Tuple(Nullable(Int64), 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(Int64)
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(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Int64)), 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(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Int64)), 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(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Int64)), 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(Int64)), 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(Int64)), 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(Int64)), 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(Int64)), 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(Int64)), 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(Int64)), 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]}