{
    "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" : "900",
                                                                "Predicate" : "DontCountHits == 0 AND IsRefresh == 0 AND URL != \"\"",
                                                                "Pushdown" : "True",
                                                                "Name" : "Filter",
                                                                "E-Size" : "13596.88731",
                                                                "E-Cost" : "0"
                                                            },
                                                            {
                                                                "Scan" : "Parallel",
                                                                "E-Size" : "1510765.257",
                                                                "ReadRanges" : [
                                                                    "CounterID [62, 62]",
                                                                    "EventDate [15887, 15917]"
                                                                ],
                                                                "Name" : "TableRangeScan",
                                                                "Inputs" : [ ],
                                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                "E-Rows" : "100000",
                                                                "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" : 2094902,
                                                                            "Max" : 704773,
                                                                            "Min" : 694709,
                                                                            "History" : [
                                                                                709,
                                                                                2021839,
                                                                                718,
                                                                                2044049,
                                                                                723,
                                                                                2064238,
                                                                                726,
                                                                                2081938,
                                                                                728,
                                                                                2090019,
                                                                                730,
                                                                                2094902
                                                                            ]
                                                                        }
                                                                    }
                                                                }
                                                            ],
                                                            "MaxMemoryUsage" : {
                                                                "Count" : 3,
                                                                "Sum" : 3342336,
                                                                "Max" : 1114112,
                                                                "Min" : 1114112,
                                                                "History" : [
                                                                    0,
                                                                    1114112,
                                                                    463,
                                                                    3342336,
                                                                    730,
                                                                    3342336
                                                                ]
                                                            },
                                                            "Tasks" : 3,
                                                            "FinishedTasks" : 3,
                                                            "PhysicalStageId" : 0,
                                                            "StageDurationUs" : 0,
                                                            "Table" : [
                                                                {
                                                                    "Path" : "/local/test_db/olap_yatests/clickbench/hits"
                                                                }
                                                            ],
                                                            "BaseTimeMs" : 1762353283300,
                                                            "CpuTimeUs" : {
                                                                "Count" : 3,
                                                                "Sum" : 3081,
                                                                "Max" : 1147,
                                                                "Min" : 822,
                                                                "History" : [
                                                                    0,
                                                                    1060,
                                                                    462,
                                                                    1820,
                                                                    463,
                                                                    2876,
                                                                    709,
                                                                    2913,
                                                                    718,
                                                                    2928,
                                                                    723,
                                                                    2961,
                                                                    726,
                                                                    3010,
                                                                    728,
                                                                    3062,
                                                                    730,
                                                                    3081
                                                                ]
                                                            },
                                                            "Ingress" : [
                                                                {
                                                                    "Pop" : { },
                                                                    "External" : { },
                                                                    "Name" : "CS",
                                                                    "Ingress" : { },
                                                                    "Push" : { }
                                                                }
                                                            ],
                                                            "UpdateTimeMs" : 730
                                                        }
                                                    }
                                                ],
                                                "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",
                                            "Output" : [
                                                {
                                                    "Pop" : { },
                                                    "Name" : "5",
                                                    "Push" : {
                                                        "WaitTimeUs" : {
                                                            "Count" : 2,
                                                            "Sum" : 1418618,
                                                            "Max" : 709706,
                                                            "Min" : 708912,
                                                            "History" : [
                                                                726,
                                                                1411776,
                                                                729,
                                                                1418618
                                                            ]
                                                        }
                                                    }
                                                }
                                            ],
                                            "MaxMemoryUsage" : {
                                                "Count" : 2,
                                                "Sum" : 2228224,
                                                "Max" : 1114112,
                                                "Min" : 1114112,
                                                "History" : [
                                                    15,
                                                    2228224,
                                                    729,
                                                    2228224
                                                ]
                                            },
                                            "Tasks" : 2,
                                            "FinishedTasks" : 2,
                                            "PhysicalStageId" : 1,
                                            "StageDurationUs" : 1000,
                                            "BaseTimeMs" : 1762353283300,
                                            "CpuTimeUs" : {
                                                "Count" : 2,
                                                "Sum" : 735,
                                                "Max" : 407,
                                                "Min" : 328,
                                                "History" : [
                                                    15,
                                                    577,
                                                    726,
                                                    661,
                                                    729,
                                                    735
                                                ]
                                            },
                                            "UpdateTimeMs" : 729,
                                            "Input" : [
                                                {
                                                    "Pop" : { },
                                                    "Name" : "1",
                                                    "Push" : {
                                                        "WaitTimeUs" : {
                                                            "Count" : 2,
                                                            "Sum" : 1440714,
                                                            "Max" : 720736,
                                                            "Min" : 719978,
                                                            "History" : [
                                                                726,
                                                                1437356,
                                                                729,
                                                                1440714
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                ],
                                "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" : 721561,
                                            "Max" : 721561,
                                            "Min" : 721561,
                                            "History" : [
                                                729,
                                                721561
                                            ]
                                        }
                                    }
                                }
                            ],
                            "MaxMemoryUsage" : {
                                "Count" : 1,
                                "Sum" : 65536,
                                "Max" : 65536,
                                "Min" : 65536,
                                "History" : [
                                    15,
                                    65536,
                                    729,
                                    65536
                                ]
                            },
                            "Tasks" : 1,
                            "FinishedTasks" : 1,
                            "PhysicalStageId" : 2,
                            "StageDurationUs" : 0,
                            "BaseTimeMs" : 1762353283300,
                            "CpuTimeUs" : {
                                "Count" : 1,
                                "Sum" : 558,
                                "Max" : 558,
                                "Min" : 558,
                                "History" : [
                                    15,
                                    517,
                                    728,
                                    547,
                                    729,
                                    558
                                ]
                            },
                            "UpdateTimeMs" : 729,
                            "Input" : [
                                {
                                    "Pop" : { },
                                    "Name" : "3",
                                    "Push" : {
                                        "WaitTimeUs" : {
                                            "Count" : 1,
                                            "Sum" : 360790,
                                            "Max" : 360790,
                                            "Min" : 360790,
                                            "History" : [
                                                728,
                                                360367,
                                                729,
                                                360790
                                            ]
                                        }
                                    }
                                }
                            ]
                        }
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "Stats" : {
            "Compilation" : {
                "FromCache" : false,
                "DurationUs" : 1326380,
                "CpuTimeUs" : 1313009
            },
            "ProcessCpuTimeUs" : 1877,
            "TotalDurationUs" : 2096291,
            "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" : "1510765.257",
                                                                "ReadRanges" : [
                                                                    "CounterID [62, 62]",
                                                                    "EventDate [15887, 15917]"
                                                                ],
                                                                "Name" : "TableRangeScan",
                                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                "E-Rows" : "100000",
                                                                "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" : "13596.88731",
                                                        "Name" : "Filter",
                                                        "Predicate" : "DontCountHits == 0 AND IsRefresh == 0 AND URL != \"\"",
                                                        "A-SelfCpu" : 1.147,
                                                        "E-Rows" : "900",
                                                        "A-Cpu" : 1.147,
                                                        "Pushdown" : "True",
                                                        "E-Cost" : "0"
                                                    }
                                                ],
                                                "Node Type" : "Filter"
                                            }
                                        ],
                                        "Node Type" : "HashShuffle (KeyColumns: [\"URL\"], HashFunc: \"HashV1\")",
                                        "PlanNodeType" : "Connection"
                                    }
                                ],
                                "Operators" : [
                                    {
                                        "A-SelfCpu" : 0.407,
                                        "A-Cpu" : 1.554,
                                        "Name" : "TopSort",
                                        "Limit" : "10",
                                        "TopSortBy" : "argument.Count0"
                                    }
                                ],
                                "Node Type" : "TopSort"
                            }
                        ],
                        "Operators" : [
                            {
                                "A-SelfCpu" : 0.558,
                                "A-Cpu" : 2.112,
                                "Name" : "Limit",
                                "Limit" : "10"
                            }
                        ],
                        "Node Type" : "Limit"
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "PlanNodeType" : "Query"
    }
}
