ClickHouse/tests/queries/0_stateless/02293_formats_json_columns.reference
2023-04-08 17:29:08 +00:00

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(Int64)
b Nullable(String)
c Array(Tuple(Array(Nullable(Int64)), 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(Int64)
c2 Nullable(String)
c3 Array(Tuple(Array(Nullable(Int64)), 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(Int64)
a Nullable(Int64)
c Nullable(Int64)
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
1
2
3
c1 Nullable(Int64)
c2 Nullable(Int64)
c3 Nullable(String)
1 1 \N
1 2 String
1 \N \N
2 2 \N
2 \N \N
3 3 \N
3 \N \N
OK
OK