{
    "Plan" : {
        "Plans" : [
            {
                "PlanNodeId" : 6,
                "Plans" : [
                    {
                        "PlanNodeId" : 5,
                        "Plans" : [
                            {
                                "PlanNodeId" : 4,
                                "Plans" : [
                                    {
                                        "PlanNodeId" : 3,
                                        "Plans" : [
                                            {
                                                "PlanNodeId" : 2,
                                                "Plans" : [
                                                    {
                                                        "Tables" : [
                                                            "olap_yatests/clickbench/hits"
                                                        ],
                                                        "PlanNodeId" : 1,
                                                        "Operators" : [
                                                            {
                                                                "Inputs" : [
                                                                    {
                                                                        "InternalOperatorId" : 1
                                                                    }
                                                                ],
                                                                "E-Rows" : "1260",
                                                                "Predicate" : "DontCountHits == 0 AND IsRefresh == 0 AND URL != \"\"",
                                                                "Pushdown" : "True",
                                                                "Name" : "Filter",
                                                                "E-Size" : "23489.38903",
                                                                "E-Cost" : "0"
                                                            },
                                                            {
                                                                "Scan" : "Parallel",
                                                                "E-Size" : "2609932.114",
                                                                "ReadRanges" : [
                                                                    "CounterID [62, 62]",
                                                                    "EventDate [15887, 15917]"
                                                                ],
                                                                "Name" : "TableRangeScan",
                                                                "Inputs" : [ ],
                                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                "E-Rows" : "140000",
                                                                "Table" : "olap_yatests/clickbench/hits",
                                                                "ReadRangesKeys" : [
                                                                    "CounterID",
                                                                    "EventDate"
                                                                ],
                                                                "ReadColumns" : [
                                                                    "DontCountHits",
                                                                    "IsRefresh",
                                                                    "URL"
                                                                ],
                                                                "SsaProgram" : {
                                                                    "Command" : [
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Int32" : 0
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 106
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 11,
                                                                                    "KernelIdx" : 0,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 62
                                                                                        },
                                                                                        {
                                                                                            "Id" : 106
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 107
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Int32" : 0
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 108
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 11,
                                                                                    "KernelIdx" : 1,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 16
                                                                                        },
                                                                                        {
                                                                                            "Id" : 108
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 109
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Bytes" : ""
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 110
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 12,
                                                                                    "KernelIdx" : 2,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 14
                                                                                        },
                                                                                        {
                                                                                            "Id" : 110
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 111
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 0,
                                                                                    "KernelIdx" : 3,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 109
                                                                                        },
                                                                                        {
                                                                                            "Id" : 111
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 112
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 0,
                                                                                    "KernelIdx" : 4,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 107
                                                                                        },
                                                                                        {
                                                                                            "Id" : 112
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 113
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Filter" : {
                                                                                "Predicate" : {
                                                                                    "Id" : 113
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "GroupBy" : {
                                                                                "Aggregates" : [
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 2
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 114
                                                                                        }
                                                                                    }
                                                                                ],
                                                                                "KeyColumns" : [
                                                                                    {
                                                                                        "Id" : 14
                                                                                    }
                                                                                ]
                                                                            }
                                                                        },
                                                                        {
                                                                            "Projection" : {
                                                                                "Columns" : [
                                                                                    {
                                                                                        "Id" : 14
                                                                                    },
                                                                                    {
                                                                                        "Id" : 114
                                                                                    }
                                                                                ]
                                                                            }
                                                                        }
                                                                    ]
                                                                },
                                                                "E-Cost" : "0",
                                                                "ReadRangesExpectedSize" : 1
                                                            }
                                                        ],
                                                        "Node Type" : "Filter-TableRangeScan",
                                                        "Stats" : {
                                                            "UseLlvm" : "undefined",
                                                            "Output" : [
                                                                {
                                                                    "Pop" : { },
                                                                    "Name" : "3",
                                                                    "Push" : {
                                                                        "WaitTimeUs" : {
                                                                            "Count" : 3,
                                                                            "Sum" : 1791205,
                                                                            "Max" : 619424,
                                                                            "Min" : 563830,
                                                                            "History" : [
                                                                                368,
                                                                                9858,
                                                                                588,
                                                                                519383,
                                                                                608,
                                                                                1070990,
                                                                                609,
                                                                                1656479,
                                                                                615,
                                                                                1678196,
                                                                                623,
                                                                                1700248,
                                                                                627,
                                                                                1727077,
                                                                                633,
                                                                                1747664,
                                                                                640,
                                                                                1751846,
                                                                                642,
                                                                                1764671,
                                                                                646,
                                                                                1789845,
                                                                                649,
                                                                                1791205
                                                                            ]
                                                                        }
                                                                    }
                                                                }
                                                            ],
                                                            "MaxMemoryUsage" : {
                                                                "Count" : 3,
                                                                "Sum" : 3342336,
                                                                "Max" : 1114112,
                                                                "Min" : 1114112,
                                                                "History" : [
                                                                    0,
                                                                    1114112,
                                                                    6,
                                                                    2228224,
                                                                    368,
                                                                    3342336,
                                                                    649,
                                                                    3342336
                                                                ]
                                                            },
                                                            "Tasks" : 3,
                                                            "FinishedTasks" : 3,
                                                            "PhysicalStageId" : 0,
                                                            "StageDurationUs" : 0,
                                                            "Table" : [
                                                                {
                                                                    "Path" : "/local/test_db/olap_yatests/clickbench/hits"
                                                                }
                                                            ],
                                                            "BaseTimeMs" : 1761493812815,
                                                            "CpuTimeUs" : {
                                                                "Count" : 3,
                                                                "Sum" : 3091,
                                                                "Max" : 1365,
                                                                "Min" : 842,
                                                                "History" : [
                                                                    0,
                                                                    1199,
                                                                    6,
                                                                    1963,
                                                                    368,
                                                                    2696,
                                                                    588,
                                                                    2709,
                                                                    608,
                                                                    2732,
                                                                    609,
                                                                    2743,
                                                                    614,
                                                                    2750,
                                                                    623,
                                                                    2773,
                                                                    627,
                                                                    2795,
                                                                    633,
                                                                    2829,
                                                                    640,
                                                                    2877,
                                                                    642,
                                                                    2984,
                                                                    646,
                                                                    3039,
                                                                    649,
                                                                    3091
                                                                ]
                                                            },
                                                            "Ingress" : [
                                                                {
                                                                    "Pop" : { },
                                                                    "External" : { },
                                                                    "Name" : "CS",
                                                                    "Ingress" : { },
                                                                    "Push" : { }
                                                                }
                                                            ],
                                                            "UpdateTimeMs" : 648
                                                        }
                                                    }
                                                ],
                                                "HashFunc" : "HashV1",
                                                "Node Type" : "HashShuffle",
                                                "KeyColumns" : [
                                                    "URL"
                                                ],
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "ExternalPlanNodeId" : 2
                                                    }
                                                ],
                                                "Name" : "TopSort",
                                                "Limit" : "10",
                                                "TopSortBy" : "argument.Count0"
                                            }
                                        ],
                                        "Node Type" : "TopSort",
                                        "Stats" : {
                                            "UseLlvm" : "undefined",
                                            "DurationUs" : {
                                                "Count" : 2,
                                                "Sum" : 2000,
                                                "Max" : 1000,
                                                "Min" : 1000
                                            },
                                            "Output" : [
                                                {
                                                    "Pop" : { },
                                                    "Name" : "5",
                                                    "Push" : {
                                                        "WaitTimeUs" : {
                                                            "Count" : 2,
                                                            "Sum" : 1217406,
                                                            "Max" : 608714,
                                                            "Min" : 608692,
                                                            "History" : [
                                                                640,
                                                                1198659,
                                                                650,
                                                                1217406
                                                            ]
                                                        }
                                                    }
                                                }
                                            ],
                                            "MaxMemoryUsage" : {
                                                "Count" : 2,
                                                "Sum" : 2228224,
                                                "Max" : 1114112,
                                                "Min" : 1114112,
                                                "History" : [
                                                    20,
                                                    2228224,
                                                    650,
                                                    2228224
                                                ]
                                            },
                                            "Tasks" : 2,
                                            "FinishedTasks" : 2,
                                            "PhysicalStageId" : 1,
                                            "StageDurationUs" : 1000,
                                            "BaseTimeMs" : 1761493812815,
                                            "CpuTimeUs" : {
                                                "Count" : 2,
                                                "Sum" : 715,
                                                "Max" : 442,
                                                "Min" : 273,
                                                "History" : [
                                                    20,
                                                    519,
                                                    368,
                                                    566,
                                                    640,
                                                    621,
                                                    650,
                                                    715
                                                ]
                                            },
                                            "UpdateTimeMs" : 650,
                                            "Input" : [
                                                {
                                                    "Pop" : { },
                                                    "Name" : "1",
                                                    "Push" : {
                                                        "WaitTimeUs" : {
                                                            "Count" : 2,
                                                            "Sum" : 1280104,
                                                            "Max" : 640192,
                                                            "Min" : 639912,
                                                            "History" : [
                                                                368,
                                                                73617,
                                                                640,
                                                                1072746,
                                                                650,
                                                                1280104
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                ],
                                "Node Type" : "Merge",
                                "SortColumns" : [
                                    "Count0 (Desc)"
                                ],
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Operators" : [
                            {
                                "Inputs" : [
                                    {
                                        "ExternalPlanNodeId" : 4
                                    }
                                ],
                                "Name" : "Limit",
                                "Limit" : "10"
                            }
                        ],
                        "Node Type" : "Limit",
                        "Stats" : {
                            "UseLlvm" : "undefined",
                            "Output" : [
                                {
                                    "Pop" : { },
                                    "Name" : "RESULT",
                                    "Push" : {
                                        "WaitTimeUs" : {
                                            "Count" : 1,
                                            "Sum" : 645722,
                                            "Max" : 645722,
                                            "Min" : 645722,
                                            "History" : [
                                                649,
                                                645722,
                                                650,
                                                645722
                                            ]
                                        }
                                    }
                                }
                            ],
                            "MaxMemoryUsage" : {
                                "Count" : 1,
                                "Sum" : 65536,
                                "Max" : 65536,
                                "Min" : 65536,
                                "History" : [
                                    20,
                                    65536,
                                    650,
                                    65536
                                ]
                            },
                            "Tasks" : 1,
                            "FinishedTasks" : 1,
                            "PhysicalStageId" : 2,
                            "StageDurationUs" : 0,
                            "BaseTimeMs" : 1761493812815,
                            "CpuTimeUs" : {
                                "Count" : 1,
                                "Sum" : 506,
                                "Max" : 506,
                                "Min" : 506,
                                "History" : [
                                    20,
                                    459,
                                    649,
                                    504,
                                    650,
                                    506
                                ]
                            },
                            "UpdateTimeMs" : 650,
                            "Input" : [
                                {
                                    "Pop" : { },
                                    "Name" : "3",
                                    "Push" : {
                                        "WaitTimeUs" : {
                                            "Count" : 1,
                                            "Sum" : 322866,
                                            "Max" : 322866,
                                            "Min" : 322866,
                                            "History" : [
                                                649,
                                                322866,
                                                650,
                                                322866
                                            ]
                                        }
                                    }
                                }
                            ]
                        }
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "Stats" : {
            "Compilation" : {
                "FromCache" : false,
                "DurationUs" : 1224352,
                "CpuTimeUs" : 1210200
            },
            "ProcessCpuTimeUs" : 2005,
            "TotalDurationUs" : 1914436,
            "ResourcePoolId" : "default",
            "QueuedTimeUs" : 0
        },
        "PlanNodeType" : "Query"
    },
    "meta" : {
        "version" : "0.2",
        "type" : "query"
    },
    "SimplifiedPlan" : {
        "PlanNodeId" : 0,
        "Plans" : [
            {
                "PlanNodeId" : 1,
                "Plans" : [
                    {
                        "PlanNodeId" : 2,
                        "Plans" : [
                            {
                                "PlanNodeId" : 4,
                                "Plans" : [
                                    {
                                        "PlanNodeId" : 5,
                                        "Plans" : [
                                            {
                                                "PlanNodeId" : 6,
                                                "Plans" : [
                                                    {
                                                        "PlanNodeId" : 7,
                                                        "Operators" : [
                                                            {
                                                                "Scan" : "Parallel",
                                                                "E-Size" : "2609932.114",
                                                                "ReadRanges" : [
                                                                    "CounterID [62, 62]",
                                                                    "EventDate [15887, 15917]"
                                                                ],
                                                                "Name" : "TableRangeScan",
                                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                "E-Rows" : "140000",
                                                                "Table" : "olap_yatests/clickbench/hits",
                                                                "ReadRangesKeys" : [
                                                                    "CounterID",
                                                                    "EventDate"
                                                                ],
                                                                "ReadColumns" : [
                                                                    "DontCountHits",
                                                                    "IsRefresh",
                                                                    "URL"
                                                                ],
                                                                "SsaProgram" : {
                                                                    "Command" : [
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Int32" : 0
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 106
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 11,
                                                                                    "KernelIdx" : 0,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 62
                                                                                        },
                                                                                        {
                                                                                            "Id" : 106
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 107
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Int32" : 0
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 108
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 11,
                                                                                    "KernelIdx" : 1,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 16
                                                                                        },
                                                                                        {
                                                                                            "Id" : 108
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 109
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Constant" : {
                                                                                    "Bytes" : ""
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 110
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 12,
                                                                                    "KernelIdx" : 2,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 14
                                                                                        },
                                                                                        {
                                                                                            "Id" : 110
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 111
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 0,
                                                                                    "KernelIdx" : 3,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 109
                                                                                        },
                                                                                        {
                                                                                            "Id" : 111
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 112
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Assign" : {
                                                                                "Function" : {
                                                                                    "YqlOperationId" : 0,
                                                                                    "KernelIdx" : 4,
                                                                                    "FunctionType" : 2,
                                                                                    "Arguments" : [
                                                                                        {
                                                                                            "Id" : 107
                                                                                        },
                                                                                        {
                                                                                            "Id" : 112
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "Column" : {
                                                                                    "Id" : 113
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "Filter" : {
                                                                                "Predicate" : {
                                                                                    "Id" : 113
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "GroupBy" : {
                                                                                "Aggregates" : [
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 2
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 114
                                                                                        }
                                                                                    }
                                                                                ],
                                                                                "KeyColumns" : [
                                                                                    {
                                                                                        "Id" : 14
                                                                                    }
                                                                                ]
                                                                            }
                                                                        },
                                                                        {
                                                                            "Projection" : {
                                                                                "Columns" : [
                                                                                    {
                                                                                        "Id" : 14
                                                                                    },
                                                                                    {
                                                                                        "Id" : 114
                                                                                    }
                                                                                ]
                                                                            }
                                                                        }
                                                                    ]
                                                                },
                                                                "E-Cost" : "0",
                                                                "ReadRangesExpectedSize" : 1
                                                            }
                                                        ],
                                                        "Node Type" : "TableRangeScan"
                                                    }
                                                ],
                                                "Operators" : [
                                                    {
                                                        "E-Size" : "23489.38903",
                                                        "Name" : "Filter",
                                                        "Predicate" : "DontCountHits == 0 AND IsRefresh == 0 AND URL != \"\"",
                                                        "A-SelfCpu" : 1.365,
                                                        "E-Rows" : "1260",
                                                        "A-Cpu" : 1.365,
                                                        "Pushdown" : "True",
                                                        "E-Cost" : "0"
                                                    }
                                                ],
                                                "Node Type" : "Filter"
                                            }
                                        ],
                                        "Node Type" : "HashShuffle (KeyColumns: [\"URL\"], HashFunc: \"HashV1\")",
                                        "PlanNodeType" : "Connection"
                                    }
                                ],
                                "Operators" : [
                                    {
                                        "A-SelfCpu" : 0.442,
                                        "A-Cpu" : 1.807,
                                        "Name" : "TopSort",
                                        "Limit" : "10",
                                        "TopSortBy" : "argument.Count0"
                                    }
                                ],
                                "Node Type" : "TopSort"
                            }
                        ],
                        "Operators" : [
                            {
                                "A-SelfCpu" : 0.506,
                                "A-Cpu" : 2.313,
                                "Name" : "Limit",
                                "Limit" : "10"
                            }
                        ],
                        "Node Type" : "Limit"
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "PlanNodeType" : "Query"
    }
}
