{
    "Plan" : {
        "Plans" : [
            {
                "PlanNodeId" : 8,
                "Plans" : [
                    {
                        "PlanNodeId" : 7,
                        "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
                                                                                    }
                                                                                ],
                                                                                "GroupBy" : "[0,1,2]",
                                                                                "Aggregation" : "",
                                                                                "Name" : "Aggregate",
                                                                                "Phase" : "Intermediate"
                                                                            },
                                                                            {
                                                                                "Inputs" : [
                                                                                    {
                                                                                        "InternalOperatorId" : 2
                                                                                    }
                                                                                ],
                                                                                "E-Rows" : "0",
                                                                                "Predicate" : "MobilePhoneModel != \"\"",
                                                                                "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" : [
                                                                                    "MobilePhone",
                                                                                    "MobilePhoneModel",
                                                                                    "UserID"
                                                                                ],
                                                                                "SsaProgram" : {
                                                                                    "Command" : [
                                                                                        {
                                                                                            "Assign" : {
                                                                                                "Constant" : {
                                                                                                    "Bytes" : ""
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 106
                                                                                                }
                                                                                            }
                                                                                        },
                                                                                        {
                                                                                            "Assign" : {
                                                                                                "Function" : {
                                                                                                    "YqlOperationId" : 12,
                                                                                                    "KernelIdx" : 0,
                                                                                                    "FunctionType" : 2,
                                                                                                    "Arguments" : [
                                                                                                        {
                                                                                                            "Id" : 35
                                                                                                        },
                                                                                                        {
                                                                                                            "Id" : 106
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 107
                                                                                                }
                                                                                            }
                                                                                        },
                                                                                        {
                                                                                            "Filter" : {
                                                                                                "Predicate" : {
                                                                                                    "Id" : 107
                                                                                                }
                                                                                            }
                                                                                        },
                                                                                        {
                                                                                            "Projection" : {
                                                                                                "Columns" : [
                                                                                                    {
                                                                                                        "Id" : 34
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 35
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 10
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "E-Cost" : "0"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "Aggregate-Filter-TableFullScan"
                                                                    }
                                                                ],
                                                                "HashFunc" : "HashV1",
                                                                "Node Type" : "HashShuffle",
                                                                "KeyColumns" : [
                                                                    "MobilePhone",
                                                                    "MobilePhoneModel",
                                                                    "UserID"
                                                                ],
                                                                "PlanNodeType" : "Connection"
                                                            }
                                                        ],
                                                        "Operators" : [
                                                            {
                                                                "Inputs" : [
                                                                    {
                                                                        "ExternalPlanNodeId" : 2
                                                                    }
                                                                ],
                                                                "GroupBy" : "[0,1]",
                                                                "Aggregation" : "COUNT",
                                                                "Name" : "Aggregate",
                                                                "Phase" : "Intermediate"
                                                            }
                                                        ],
                                                        "Node Type" : "Aggregate"
                                                    }
                                                ],
                                                "HashFunc" : "HashV1",
                                                "Node Type" : "HashShuffle",
                                                "KeyColumns" : [
                                                    "MobilePhone",
                                                    "MobilePhoneModel"
                                                ],
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "ExternalPlanNodeId" : 4
                                                    }
                                                ],
                                                "Name" : "TopSort",
                                                "Limit" : "10",
                                                "TopSortBy" : "argument.Count0"
                                            }
                                        ],
                                        "Node Type" : "TopSort"
                                    }
                                ],
                                "Node Type" : "Merge",
                                "SortColumns" : [
                                    "Count0 (Desc)"
                                ],
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Operators" : [
                            {
                                "Inputs" : [
                                    {
                                        "ExternalPlanNodeId" : 6
                                    }
                                ],
                                "Name" : "Limit",
                                "Limit" : "10"
                            }
                        ],
                        "Node Type" : "Limit"
                    }
                ],
                "Node Type" : "ResultSet",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "Stats" : {
            "ResourcePoolId" : "default"
        },
        "PlanNodeType" : "Query"
    },
    "meta" : {
        "version" : "0.2",
        "type" : "query"
    },
    "tables" : [
        {
            "name" : "/local/test_db/olap_yatests/clickbench/hits",
            "reads" : [
                {
                    "columns" : [
                        "MobilePhone",
                        "MobilePhoneModel",
                        "UserID"
                    ],
                    "scan_by" : [
                        "CounterID (-∞, +∞)",
                        "EventDate (-∞, +∞)",
                        "UserID (-∞, +∞)",
                        "EventTime (-∞, +∞)",
                        "WatchID (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                }
            ]
        }
    ],
    "SimplifiedPlan" : {
        "PlanNodeId" : 0,
        "Plans" : [
            {
                "PlanNodeId" : 1,
                "Plans" : [
                    {
                        "PlanNodeId" : 2,
                        "Plans" : [
                            {
                                "PlanNodeId" : 4,
                                "Plans" : [
                                    {
                                        "PlanNodeId" : 5,
                                        "Plans" : [
                                            {
                                                "PlanNodeId" : 6,
                                                "Plans" : [
                                                    {
                                                        "PlanNodeId" : 7,
                                                        "Plans" : [
                                                            {
                                                                "PlanNodeId" : 8,
                                                                "Plans" : [
                                                                    {
                                                                        "PlanNodeId" : 9,
                                                                        "Plans" : [
                                                                            {
                                                                                "PlanNodeId" : 10,
                                                                                "Operators" : [
                                                                                    {
                                                                                        "Scan" : "Parallel",
                                                                                        "E-Size" : "0",
                                                                                        "ReadRanges" : [
                                                                                            "CounterID (-∞, +∞)",
                                                                                            "EventDate (-∞, +∞)",
                                                                                            "UserID (-∞, +∞)",
                                                                                            "EventTime (-∞, +∞)",
                                                                                            "WatchID (-∞, +∞)"
                                                                                        ],
                                                                                        "Name" : "TableFullScan",
                                                                                        "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                                        "E-Rows" : "0",
                                                                                        "Table" : "olap_yatests/clickbench/hits",
                                                                                        "ReadColumns" : [
                                                                                            "MobilePhone",
                                                                                            "MobilePhoneModel",
                                                                                            "UserID"
                                                                                        ],
                                                                                        "SsaProgram" : {
                                                                                            "Command" : [
                                                                                                {
                                                                                                    "Assign" : {
                                                                                                        "Constant" : {
                                                                                                            "Bytes" : ""
                                                                                                        },
                                                                                                        "Column" : {
                                                                                                            "Id" : 106
                                                                                                        }
                                                                                                    }
                                                                                                },
                                                                                                {
                                                                                                    "Assign" : {
                                                                                                        "Function" : {
                                                                                                            "YqlOperationId" : 12,
                                                                                                            "KernelIdx" : 0,
                                                                                                            "FunctionType" : 2,
                                                                                                            "Arguments" : [
                                                                                                                {
                                                                                                                    "Id" : 35
                                                                                                                },
                                                                                                                {
                                                                                                                    "Id" : 106
                                                                                                                }
                                                                                                            ]
                                                                                                        },
                                                                                                        "Column" : {
                                                                                                            "Id" : 107
                                                                                                        }
                                                                                                    }
                                                                                                },
                                                                                                {
                                                                                                    "Filter" : {
                                                                                                        "Predicate" : {
                                                                                                            "Id" : 107
                                                                                                        }
                                                                                                    }
                                                                                                },
                                                                                                {
                                                                                                    "Projection" : {
                                                                                                        "Columns" : [
                                                                                                            {
                                                                                                                "Id" : 34
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 35
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 10
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "E-Cost" : "0"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "TableFullScan"
                                                                            }
                                                                        ],
                                                                        "Operators" : [
                                                                            {
                                                                                "E-Rows" : "0",
                                                                                "Predicate" : "MobilePhoneModel != \"\"",
                                                                                "Pushdown" : "True",
                                                                                "Name" : "Filter",
                                                                                "E-Size" : "0",
                                                                                "E-Cost" : "0"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "Filter"
                                                                    }
                                                                ],
                                                                "Operators" : [
                                                                    {
                                                                        "GroupBy" : "[0,1,2]",
                                                                        "Aggregation" : "",
                                                                        "Name" : "Aggregate",
                                                                        "Phase" : "Intermediate"
                                                                    }
                                                                ],
                                                                "Node Type" : "Aggregate"
                                                            }
                                                        ],
                                                        "Node Type" : "HashShuffle (KeyColumns: [\"MobilePhone\",\"MobilePhoneModel\",\"UserID\"], HashFunc: \"HashV1\")",
                                                        "PlanNodeType" : "Connection"
                                                    }
                                                ],
                                                "Operators" : [
                                                    {
                                                        "GroupBy" : "[0,1]",
                                                        "Aggregation" : "COUNT",
                                                        "Name" : "Aggregate",
                                                        "Phase" : "Intermediate"
                                                    }
                                                ],
                                                "Node Type" : "Aggregate"
                                            }
                                        ],
                                        "Node Type" : "HashShuffle (KeyColumns: [\"MobilePhone\",\"MobilePhoneModel\"], HashFunc: \"HashV1\")",
                                        "PlanNodeType" : "Connection"
                                    }
                                ],
                                "Operators" : [
                                    {
                                        "Name" : "TopSort",
                                        "Limit" : "10",
                                        "TopSortBy" : "argument.Count0"
                                    }
                                ],
                                "Node Type" : "TopSort"
                            }
                        ],
                        "Operators" : [
                            {
                                "Name" : "Limit",
                                "Limit" : "10"
                            }
                        ],
                        "Node Type" : "Limit"
                    }
                ],
                "Node Type" : "ResultSet",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "OptimizerStats" : {
            "EquiJoinsCount" : 0,
            "JoinsCount" : 0
        },
        "PlanNodeType" : "Query"
    }
}
