2021-04-20 13:39:23 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"Plan": {
|
|
|
|
"Node Type": "Union",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Union_10",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Plans": [
|
|
|
|
{
|
|
|
|
"Node Type": "Expression",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Expression_13",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Plans": [
|
|
|
|
{
|
2024-07-30 02:23:51 +00:00
|
|
|
"Node Type": "ReadFromStorage",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "ReadFromStorage_0"
|
2021-04-20 13:39:23 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Node Type": "Expression",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Expression_16",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Plans": [
|
|
|
|
{
|
2024-07-30 02:23:51 +00:00
|
|
|
"Node Type": "ReadFromStorage",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "ReadFromStorage_4"
|
2021-04-20 13:39:23 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
--------
|
|
|
|
"Header": [
|
|
|
|
{
|
|
|
|
"Name": "1",
|
|
|
|
"Type": "UInt8"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Name": "plus(2, dummy)",
|
|
|
|
"Type": "UInt16"
|
|
|
|
}
|
|
|
|
--------
|
|
|
|
"Node Type": "Aggregating",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Aggregating_3",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Header": [
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Name": "__table1.number",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Type": "UInt64"
|
|
|
|
},
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Name": "quantile(0.2_Float64)(__table1.number)",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Type": "Float64"
|
|
|
|
},
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Name": "sumIf(__table1.number, greater(__table1.number, 0_UInt8))",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Type": "UInt64"
|
|
|
|
}
|
|
|
|
],
|
2023-08-24 23:25:05 +00:00
|
|
|
"Keys": ["__table1.number"],
|
2021-04-20 13:39:23 +00:00
|
|
|
"Aggregates": [
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Name": "quantile(0.2_Float64)(__table1.number)",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Function": {
|
|
|
|
"Name": "quantile",
|
|
|
|
"Parameters": ["0.2"],
|
|
|
|
"Argument Types": ["UInt64"],
|
|
|
|
"Result Type": "Float64"
|
|
|
|
},
|
2023-08-24 23:25:05 +00:00
|
|
|
"Arguments": ["__table1.number"]
|
2021-04-20 13:39:23 +00:00
|
|
|
},
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Name": "sumIf(__table1.number, greater(__table1.number, 0_UInt8))",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Function": {
|
|
|
|
"Name": "sumIf",
|
|
|
|
"Argument Types": ["UInt64", "UInt8"],
|
|
|
|
"Result Type": "UInt64"
|
|
|
|
},
|
2023-08-24 23:25:05 +00:00
|
|
|
"Arguments": ["__table1.number", "greater(__table1.number, 0_UInt8)"]
|
2021-04-20 13:39:23 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
--------
|
|
|
|
"Node Type": "ArrayJoin",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "ArrayJoin_4",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Left": false,
|
2024-12-02 13:49:20 +00:00
|
|
|
"Columns": ["__array_join_exp_1", "__array_join_exp_2"],
|
2021-04-20 13:39:23 +00:00
|
|
|
--------
|
|
|
|
"Node Type": "Distinct",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Distinct_4",
|
2023-08-24 23:25:05 +00:00
|
|
|
"Columns": ["intDiv(__table1.number, 2_UInt8)", "intDiv(__table1.number, 3_UInt8)"],
|
2021-04-20 13:39:23 +00:00
|
|
|
--
|
|
|
|
"Node Type": "Distinct",
|
2024-11-13 20:54:45 +00:00
|
|
|
"Node Id": "Distinct_3",
|
2023-08-24 23:25:05 +00:00
|
|
|
"Columns": ["intDiv(__table1.number, 2_UInt8)", "intDiv(__table1.number, 3_UInt8)"],
|
2021-04-20 13:39:23 +00:00
|
|
|
--------
|
|
|
|
"Sort Description": [
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Column": "__table1.number",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Ascending": false,
|
|
|
|
"With Fill": false
|
|
|
|
},
|
|
|
|
{
|
2023-08-24 23:25:05 +00:00
|
|
|
"Column": "plus(__table1.number, 1_UInt8)",
|
2021-04-20 13:39:23 +00:00
|
|
|
"Ascending": true,
|
|
|
|
"With Fill": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"Limit": 3,
|