ClickHouse/tests/queries/0_stateless/02293_formats_json_columns.reference

104 lines
1.9 KiB
Plaintext

JSONColumns
{
"a": [0, 1, 2, 3, 4],
"b": ["String", "String", "String", "String", "String"],
"c": [[[[],"String"],[[],"gnirtS"]], [[[0],"String"],[[0],"gnirtS"]], [[[0,1],"String"],[[0,1],"gnirtS"]], [[[],"String"],[[0,1,2],"gnirtS"]], [[[0],"String"],[[],"gnirtS"]]]
}
a Nullable(Float64)
b Nullable(String)
c Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
0 String [([],'String'),([],'gnirtS')]
1 String [([0],'String'),([0],'gnirtS')]
2 String [([0,1],'String'),([0,1],'gnirtS')]
3 String [([],'String'),([0,1,2],'gnirtS')]
4 String [([0],'String'),([],'gnirtS')]
JSONCompactColumns
[
[0, 1, 2, 3, 4],
["String", "String", "String", "String", "String"],
[[[[],"String"],[[],"gnirtS"]], [[[0],"String"],[[0],"gnirtS"]], [[[0,1],"String"],[[0,1],"gnirtS"]], [[[],"String"],[[0,1,2],"gnirtS"]], [[[0],"String"],[[],"gnirtS"]]]
]
c1 Nullable(Float64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Float64)), Nullable(String)))
0 String [([],'String'),([],'gnirtS')]
1 String [([0],'String'),([0],'gnirtS')]
2 String [([0,1],'String'),([0,1],'gnirtS')]
3 String [([],'String'),([0,1,2],'gnirtS')]
4 String [([0],'String'),([],'gnirtS')]
JSONColumnsWithMetadata
{
"meta":
[
{
"name": "sum",
"type": "UInt64"
},
{
"name": "avg",
"type": "Float64"
}
],
"data":
{
"sum": ["1", "2", "3", "4"],
"avg": [1, 2, 3, 2]
},
"totals":
{
"sum": "10",
"avg": 2
},
"extremes":
{
"min":
{
"sum": "1",
"avg": 1
},
"max":
{
"sum": "4",
"avg": 3
}
},
"rows": 4,
"statistics":
{
"rows_read": 5,
"bytes_read": 20
}
}
b Nullable(Float64)
a Nullable(Float64)
c Nullable(Float64)
d Nullable(String)
1 3 \N \N
2 2 \N \N
3 1 \N \N
\N \N 1 \N
\N \N 2 \N
\N \N 3 \N
\N \N \N String
OK
3
2
1
c1 Nullable(Float64)
c2 Nullable(Float64)
c3 Nullable(String)
1 1 \N
2 2 \N
3 3 \N
1 \N \N
2 \N \N
3 \N \N
1 2 String
OK
OK