{
    "Plan" : {
        "Plans" : [
            {
                "PlanNodeId" : 4,
                "Plans" : [
                    {
                        "PlanNodeId" : 3,
                        "Plans" : [
                            {
                                "PlanNodeId" : 2,
                                "Plans" : [
                                    {
                                        "Tables" : [
                                            "olap_yatests/clickbench/hits"
                                        ],
                                        "PlanNodeId" : 1,
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 1
                                                    }
                                                ],
                                                "TopBy" : "[row.EventTime,row.SearchPhrase]",
                                                "Name" : "Top",
                                                "Limit" : "10"
                                            },
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 2
                                                    }
                                                ],
                                                "E-Rows" : "0",
                                                "Predicate" : "SearchPhrase != \"\"",
                                                "Pushdown" : "True",
                                                "Name" : "Filter",
                                                "E-Size" : "0",
                                                "E-Cost" : "0"
                                            },
                                            {
                                                "Scan" : "Parallel",
                                                "E-Size" : "0",
                                                "ReadRanges" : [
                                                    "CounterID (-∞, +∞)",
                                                    "EventDate (-∞, +∞)",
                                                    "UserID (-∞, +∞)",
                                                    "EventTime (-∞, +∞)",
                                                    "WatchID (-∞, +∞)"
                                                ],
                                                "Name" : "TableFullScan",
                                                "Inputs" : [ ],
                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                "E-Rows" : "0",
                                                "Table" : "olap_yatests/clickbench/hits",
                                                "ReadColumns" : [
                                                    "EventTime",
                                                    "SearchPhrase"
                                                ],
                                                "SsaProgram" : {
                                                    "Version" : 5,
                                                    "Command" : [
                                                        {
                                                            "Assign" : {
                                                                "Constant" : {
                                                                    "Bytes" : ""
                                                                },
                                                                "Column" : {
                                                                    "Id" : 106
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "Assign" : {
                                                                "Function" : {
                                                                    "YqlOperationId" : 12,
                                                                    "KernelIdx" : 0,
                                                                    "FunctionType" : 2,
                                                                    "Arguments" : [
                                                                        {
                                                                            "Id" : 40
                                                                        },
                                                                        {
                                                                            "Id" : 106
                                                                        }
                                                                    ]
                                                                },
                                                                "Column" : {
                                                                    "Id" : 107
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "Filter" : {
                                                                "Predicate" : {
                                                                    "Id" : 107
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "Projection" : {
                                                                "Columns" : [
                                                                    {
                                                                        "Id" : 5
                                                                    },
                                                                    {
                                                                        "Id" : 40
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "E-Cost" : "0"
                                            }
                                        ],
                                        "Node Type" : "Top-Filter-TableFullScan",
                                        "Stats" : {
                                            "UseLlvm" : "undefined",
                                            "Output" : [
                                                {
                                                    "Pop" : {
                                                        "Chunks" : {
                                                            "Count" : 3,
                                                            "Sum" : 3,
                                                            "Max" : 1,
                                                            "Min" : 1
                                                        },
                                                        "Rows" : {
                                                            "Count" : 3,
                                                            "Sum" : 30,
                                                            "Max" : 10,
                                                            "Min" : 10
                                                        },
                                                        "LastMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4900,
                                                            "Max" : 1634,
                                                            "Min" : 1633
                                                        },
                                                        "ActiveMessageMs" : {
                                                            "Count" : 3,
                                                            "Max" : 1634,
                                                            "Min" : 1633
                                                        },
                                                        "FirstMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4900,
                                                            "Max" : 1634,
                                                            "Min" : 1633
                                                        },
                                                        "Bytes" : {
                                                            "Count" : 3,
                                                            "Sum" : 1544,
                                                            "Max" : 615,
                                                            "Min" : 423
                                                        }
                                                    },
                                                    "Name" : "3",
                                                    "Push" : {
                                                        "Rows" : {
                                                            "Count" : 3,
                                                            "Sum" : 30,
                                                            "Max" : 10,
                                                            "Min" : 10
                                                        },
                                                        "LastMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4900,
                                                            "Max" : 1634,
                                                            "Min" : 1633
                                                        },
                                                        "Chunks" : {
                                                            "Count" : 3,
                                                            "Sum" : 30,
                                                            "Max" : 10,
                                                            "Min" : 10
                                                        },
                                                        "ResumeMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4899,
                                                            "Max" : 1633,
                                                            "Min" : 1633
                                                        },
                                                        "FirstMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4899,
                                                            "Max" : 1633,
                                                            "Min" : 1633
                                                        },
                                                        "ActiveMessageMs" : {
                                                            "Count" : 3,
                                                            "Max" : 1634,
                                                            "Min" : 1633
                                                        },
                                                        "PauseMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4895,
                                                            "Max" : 1632,
                                                            "Min" : 1631
                                                        },
                                                        "ActiveTimeUs" : {
                                                            "Count" : 1,
                                                            "Sum" : 1000,
                                                            "Max" : 1000,
                                                            "Min" : 1000
                                                        },
                                                        "WaitTimeUs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4734349,
                                                            "Max" : 1578392,
                                                            "Min" : 1577867
                                                        },
                                                        "WaitPeriods" : {
                                                            "Count" : 3,
                                                            "Sum" : 3,
                                                            "Max" : 1,
                                                            "Min" : 1
                                                        },
                                                        "WaitMessageMs" : {
                                                            "Count" : 3,
                                                            "Max" : 1633,
                                                            "Min" : 1631
                                                        }
                                                    }
                                                }
                                            ],
                                            "MaxMemoryUsage" : {
                                                "Count" : 3,
                                                "Sum" : 3342336,
                                                "Max" : 1114112,
                                                "Min" : 1114112
                                            },
                                            "IngressBytes" : {
                                                "Count" : 3,
                                                "Sum" : 933646,
                                                "Max" : 387652,
                                                "Min" : 236253
                                            },
                                            "Tasks" : 3,
                                            "OutputRows" : {
                                                "Count" : 3,
                                                "Sum" : 30,
                                                "Max" : 10,
                                                "Min" : 10
                                            },
                                            "FinishedTasks" : 3,
                                            "IngressRows" : {
                                                "Count" : 3,
                                                "Sum" : 13005,
                                                "Max" : 5391,
                                                "Min" : 3300
                                            },
                                            "PhysicalStageId" : 0,
                                            "StageDurationUs" : 0,
                                            "Table" : [
                                                {
                                                    "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                    "ReadRows" : {
                                                        "Count" : 3,
                                                        "Sum" : 13005,
                                                        "Max" : 5391,
                                                        "Min" : 3300
                                                    },
                                                    "ReadBytes" : {
                                                        "Count" : 3,
                                                        "Sum" : 933646,
                                                        "Max" : 387652,
                                                        "Min" : 236253
                                                    }
                                                }
                                            ],
                                            "BaseTimeMs" : 1765530755631,
                                            "OutputBytes" : {
                                                "Count" : 3,
                                                "Sum" : 1544,
                                                "Max" : 615,
                                                "Min" : 423
                                            },
                                            "CpuTimeUs" : {
                                                "Count" : 3,
                                                "Sum" : 214648,
                                                "Max" : 84939,
                                                "Min" : 58020
                                            },
                                            "Ingress" : [
                                                {
                                                    "Pop" : { },
                                                    "External" : {
                                                        "PartitionCount" : 128,
                                                        "LastMessageMs" : {
                                                            "Count" : 128,
                                                            "Sum" : 114960,
                                                            "Max" : 1631,
                                                            "Min" : 112
                                                        },
                                                        "ExternalRows" : {
                                                            "Count" : 128,
                                                            "Sum" : 13005,
                                                            "Max" : 128,
                                                            "Min" : 77
                                                        },
                                                        "ExternalBytes" : {
                                                            "Count" : 128,
                                                            "Sum" : 933646,
                                                            "Max" : 9188,
                                                            "Min" : 5262
                                                        },
                                                        "FirstMessageMs" : {
                                                            "Count" : 128,
                                                            "Sum" : 112821,
                                                            "Max" : 1625,
                                                            "Min" : 93
                                                        }
                                                    },
                                                    "Name" : "CS",
                                                    "Ingress" : {
                                                        "Rows" : {
                                                            "Count" : 3,
                                                            "Sum" : 13005,
                                                            "Max" : 5391,
                                                            "Min" : 3300
                                                        },
                                                        "LastMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4893,
                                                            "Max" : 1631,
                                                            "Min" : 1631
                                                        },
                                                        "ActiveMessageMs" : {
                                                            "Count" : 3,
                                                            "Max" : 1631,
                                                            "Min" : 93
                                                        },
                                                        "FirstMessageMs" : {
                                                            "Count" : 3,
                                                            "Sum" : 306,
                                                            "Max" : 112,
                                                            "Min" : 93
                                                        },
                                                        "Bytes" : {
                                                            "Count" : 3,
                                                            "Sum" : 933646,
                                                            "Max" : 387652,
                                                            "Min" : 236253
                                                        },
                                                        "ActiveTimeUs" : {
                                                            "Count" : 3,
                                                            "Sum" : 4587000,
                                                            "Max" : 1538000,
                                                            "Min" : 1519000
                                                        }
                                                    },
                                                    "Push" : { }
                                                }
                                            ],
                                            "UpdateTimeMs" : 1634
                                        }
                                    }
                                ],
                                "Node Type" : "UnionAll",
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Operators" : [
                            {
                                "Inputs" : [
                                    {
                                        "ExternalPlanNodeId" : 2
                                    }
                                ],
                                "Name" : "TopSort",
                                "Limit" : "10",
                                "TopSortBy" : "[row.EventTime,row.SearchPhrase]"
                            }
                        ],
                        "Node Type" : "TopSort",
                        "Stats" : {
                            "UseLlvm" : "undefined",
                            "OutputRows" : {
                                "Count" : 1,
                                "Sum" : 10,
                                "Max" : 10,
                                "Min" : 10
                            },
                            "PhysicalStageId" : 1,
                            "FinishedTasks" : 1,
                            "InputBytes" : {
                                "Count" : 1,
                                "Sum" : 1544,
                                "Max" : 1544,
                                "Min" : 1544
                            },
                            "DurationUs" : {
                                "Count" : 1,
                                "Sum" : 2000,
                                "Max" : 2000,
                                "Min" : 2000
                            },
                            "MaxMemoryUsage" : {
                                "Count" : 1,
                                "Sum" : 1114112,
                                "Max" : 1114112,
                                "Min" : 1114112
                            },
                            "BaseTimeMs" : 1765530755631,
                            "Output" : [
                                {
                                    "Pop" : {
                                        "Chunks" : {
                                            "Count" : 1,
                                            "Sum" : 1,
                                            "Max" : 1,
                                            "Min" : 1
                                        },
                                        "Rows" : {
                                            "Count" : 1,
                                            "Sum" : 10,
                                            "Max" : 10,
                                            "Min" : 10
                                        },
                                        "LastMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "FirstMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "Bytes" : {
                                            "Count" : 1,
                                            "Sum" : 467,
                                            "Max" : 467,
                                            "Min" : 467
                                        }
                                    },
                                    "Name" : "RESULT",
                                    "Push" : {
                                        "LastMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "Rows" : {
                                            "Count" : 1,
                                            "Sum" : 10,
                                            "Max" : 10,
                                            "Min" : 10
                                        },
                                        "Chunks" : {
                                            "Count" : 1,
                                            "Sum" : 10,
                                            "Max" : 10,
                                            "Min" : 10
                                        },
                                        "ResumeMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "FirstMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "PauseMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "WaitTimeUs" : {
                                            "Count" : 1,
                                            "Sum" : 1625503,
                                            "Max" : 1625503,
                                            "Min" : 1625503
                                        },
                                        "WaitPeriods" : {
                                            "Count" : 1,
                                            "Sum" : 1,
                                            "Max" : 1,
                                            "Min" : 1
                                        }
                                    }
                                }
                            ],
                            "CpuTimeUs" : {
                                "Count" : 1,
                                "Sum" : 1429,
                                "Max" : 1429,
                                "Min" : 1429
                            },
                            "StageDurationUs" : 2000,
                            "ResultRows" : {
                                "Count" : 1,
                                "Sum" : 10,
                                "Max" : 10,
                                "Min" : 10
                            },
                            "ResultBytes" : {
                                "Count" : 1,
                                "Sum" : 467,
                                "Max" : 467,
                                "Min" : 467
                            },
                            "OutputBytes" : {
                                "Count" : 1,
                                "Sum" : 467,
                                "Max" : 467,
                                "Min" : 467
                            },
                            "Input" : [
                                {
                                    "Pop" : {
                                        "Chunks" : {
                                            "Count" : 1,
                                            "Sum" : 3,
                                            "Max" : 3,
                                            "Min" : 3
                                        },
                                        "Rows" : {
                                            "Count" : 1,
                                            "Sum" : 30,
                                            "Max" : 30,
                                            "Min" : 30
                                        },
                                        "LastMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "FirstMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "Bytes" : {
                                            "Count" : 1,
                                            "Sum" : 1544,
                                            "Max" : 1544,
                                            "Min" : 1544
                                        }
                                    },
                                    "Name" : "1",
                                    "Push" : {
                                        "LastMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "Rows" : {
                                            "Count" : 1,
                                            "Sum" : 30,
                                            "Max" : 30,
                                            "Min" : 30
                                        },
                                        "Chunks" : {
                                            "Count" : 1,
                                            "Sum" : 3,
                                            "Max" : 3,
                                            "Min" : 3
                                        },
                                        "ResumeMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "FirstMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1634,
                                            "Max" : 1634,
                                            "Min" : 1634
                                        },
                                        "Bytes" : {
                                            "Count" : 1,
                                            "Sum" : 1544,
                                            "Max" : 1544,
                                            "Min" : 1544
                                        },
                                        "PauseMessageMs" : {
                                            "Count" : 1,
                                            "Sum" : 1011,
                                            "Max" : 1011,
                                            "Min" : 1011
                                        },
                                        "WaitTimeUs" : {
                                            "Count" : 1,
                                            "Sum" : 1625183,
                                            "Max" : 1625183,
                                            "Min" : 1625183
                                        },
                                        "WaitPeriods" : {
                                            "Count" : 1,
                                            "Sum" : 3,
                                            "Max" : 3,
                                            "Min" : 3
                                        },
                                        "WaitMessageMs" : {
                                            "Count" : 1,
                                            "Max" : 1634,
                                            "Min" : 1011
                                        }
                                    }
                                }
                            ],
                            "UpdateTimeMs" : 1636,
                            "InputRows" : {
                                "Count" : 1,
                                "Sum" : 30,
                                "Max" : 30,
                                "Min" : 30
                            },
                            "Tasks" : 1
                        }
                    }
                ],
                "Node Type" : "ResultSet",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "Stats" : {
            "Compilation" : {
                "FromCache" : false,
                "DurationUs" : 602804,
                "CpuTimeUs" : 589493
            },
            "ProcessCpuTimeUs" : 406,
            "TotalDurationUs" : 2291481,
            "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,
                                                "Operators" : [
                                                    {
                                                        "Scan" : "Parallel",
                                                        "E-Size" : "0",
                                                        "ReadRanges" : [
                                                            "CounterID (-∞, +∞)",
                                                            "EventDate (-∞, +∞)",
                                                            "UserID (-∞, +∞)",
                                                            "EventTime (-∞, +∞)",
                                                            "WatchID (-∞, +∞)"
                                                        ],
                                                        "Name" : "TableFullScan",
                                                        "A-Rows" : 13005,
                                                        "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                        "E-Rows" : "0",
                                                        "Table" : "olap_yatests/clickbench/hits",
                                                        "ReadColumns" : [
                                                            "EventTime",
                                                            "SearchPhrase"
                                                        ],
                                                        "A-Size" : 933646,
                                                        "SsaProgram" : {
                                                            "Version" : 5,
                                                            "Command" : [
                                                                {
                                                                    "Assign" : {
                                                                        "Constant" : {
                                                                            "Bytes" : ""
                                                                        },
                                                                        "Column" : {
                                                                            "Id" : 106
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "Assign" : {
                                                                        "Function" : {
                                                                            "YqlOperationId" : 12,
                                                                            "KernelIdx" : 0,
                                                                            "FunctionType" : 2,
                                                                            "Arguments" : [
                                                                                {
                                                                                    "Id" : 40
                                                                                },
                                                                                {
                                                                                    "Id" : 106
                                                                                }
                                                                            ]
                                                                        },
                                                                        "Column" : {
                                                                            "Id" : 107
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "Filter" : {
                                                                        "Predicate" : {
                                                                            "Id" : 107
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "Projection" : {
                                                                        "Columns" : [
                                                                            {
                                                                                "Id" : 5
                                                                            },
                                                                            {
                                                                                "Id" : 40
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "E-Cost" : "0"
                                                    }
                                                ],
                                                "Node Type" : "TableFullScan"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "E-Rows" : "0",
                                                "Predicate" : "SearchPhrase != \"\"",
                                                "Pushdown" : "True",
                                                "Name" : "Filter",
                                                "E-Size" : "0",
                                                "E-Cost" : "0"
                                            }
                                        ],
                                        "Node Type" : "Filter"
                                    }
                                ],
                                "Operators" : [
                                    {
                                        "A-Rows" : 30,
                                        "A-SelfCpu" : 84.939,
                                        "A-Cpu" : 84.939,
                                        "A-Size" : 1544,
                                        "TopBy" : "[row.EventTime,row.SearchPhrase]",
                                        "Name" : "Top",
                                        "Limit" : "10"
                                    }
                                ],
                                "Node Type" : "Top"
                            }
                        ],
                        "Operators" : [
                            {
                                "A-Rows" : 10,
                                "A-SelfCpu" : 1.429,
                                "A-Cpu" : 86.368,
                                "A-Size" : 467,
                                "Name" : "TopSort",
                                "Limit" : "10",
                                "TopSortBy" : "[row.EventTime,row.SearchPhrase]"
                            }
                        ],
                        "Node Type" : "TopSort"
                    }
                ],
                "Node Type" : "ResultSet",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "PlanNodeType" : "Query"
    }
}
