{
    "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" : "27135",
                                                                "Predicate" : "SearchPhrase != \"\"",
                                                                "Pushdown" : "True",
                                                                "Name" : "Filter",
                                                                "E-Size" : "738029.1429",
                                                                "E-Cost" : "0"
                                                            },
                                                            {
                                                                "Scan" : "Parallel",
                                                                "E-Size" : "820032.381",
                                                                "ReadRanges" : [
                                                                    "CounterID (-∞, +∞)",
                                                                    "EventDate (-∞, +∞)",
                                                                    "UserID (-∞, +∞)",
                                                                    "EventTime (-∞, +∞)",
                                                                    "WatchID (-∞, +∞)"
                                                                ],
                                                                "Name" : "TableFullScan",
                                                                "Inputs" : [ ],
                                                                "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                "E-Rows" : "30150",
                                                                "Table" : "olap_yatests/clickbench/hits",
                                                                "ReadColumns" : [
                                                                    "ClientIP",
                                                                    "IsRefresh",
                                                                    "ResolutionWidth",
                                                                    "SearchEngineID",
                                                                    "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
                                                                                }
                                                                            }
                                                                        },
                                                                        {
                                                                            "GroupBy" : {
                                                                                "Aggregates" : [
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 5,
                                                                                            "Arguments" : [
                                                                                                {
                                                                                                    "Id" : 21
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 108
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 2,
                                                                                            "Arguments" : [
                                                                                                {
                                                                                                    "Id" : 21
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 109
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 2
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 110
                                                                                        }
                                                                                    },
                                                                                    {
                                                                                        "Function" : {
                                                                                            "Id" : 5,
                                                                                            "Arguments" : [
                                                                                                {
                                                                                                    "Id" : 16
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "Column" : {
                                                                                            "Id" : 111
                                                                                        }
                                                                                    }
                                                                                ],
                                                                                "KeyColumns" : [
                                                                                    {
                                                                                        "Id" : 8
                                                                                    },
                                                                                    {
                                                                                        "Id" : 39
                                                                                    }
                                                                                ]
                                                                            }
                                                                        },
                                                                        {
                                                                            "Projection" : {
                                                                                "Columns" : [
                                                                                    {
                                                                                        "Id" : 8
                                                                                    },
                                                                                    {
                                                                                        "Id" : 39
                                                                                    },
                                                                                    {
                                                                                        "Id" : 109
                                                                                    },
                                                                                    {
                                                                                        "Id" : 108
                                                                                    },
                                                                                    {
                                                                                        "Id" : 110
                                                                                    },
                                                                                    {
                                                                                        "Id" : 111
                                                                                    }
                                                                                ]
                                                                            }
                                                                        }
                                                                    ]
                                                                },
                                                                "E-Cost" : "0"
                                                            }
                                                        ],
                                                        "Node Type" : "Filter-TableFullScan"
                                                    }
                                                ],
                                                "Node Type" : "HashShuffle",
                                                "KeyColumns" : [
                                                    "ClientIP",
                                                    "SearchEngineID"
                                                ],
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 1
                                                    }
                                                ],
                                                "Name" : "TopSort",
                                                "Limit" : "10",
                                                "TopSortBy" : "argument.Count0"
                                            },
                                            {
                                                "Inputs" : [
                                                    {
                                                        "ExternalPlanNodeId" : 2
                                                    }
                                                ],
                                                "Name" : "Aggregate",
                                                "Phase" : "Final"
                                            }
                                        ],
                                        "Node Type" : "TopSort-Aggregate"
                                    }
                                ],
                                "Node Type" : "Merge",
                                "SortColumns" : [
                                    "Count0 (Desc)"
                                ],
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Operators" : [
                            {
                                "Inputs" : [
                                    {
                                        "ExternalPlanNodeId" : 4
                                    }
                                ],
                                "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" : [
                        "ClientIP",
                        "IsRefresh",
                        "ResolutionWidth",
                        "SearchEngineID",
                        "SearchPhrase"
                    ],
                    "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,
                                                                "Operators" : [
                                                                    {
                                                                        "Scan" : "Parallel",
                                                                        "E-Size" : "820032.381",
                                                                        "ReadRanges" : [
                                                                            "CounterID (-∞, +∞)",
                                                                            "EventDate (-∞, +∞)",
                                                                            "UserID (-∞, +∞)",
                                                                            "EventTime (-∞, +∞)",
                                                                            "WatchID (-∞, +∞)"
                                                                        ],
                                                                        "Name" : "TableFullScan",
                                                                        "Path" : "/local/test_db/olap_yatests/clickbench/hits",
                                                                        "E-Rows" : "30150",
                                                                        "Table" : "olap_yatests/clickbench/hits",
                                                                        "ReadColumns" : [
                                                                            "ClientIP",
                                                                            "IsRefresh",
                                                                            "ResolutionWidth",
                                                                            "SearchEngineID",
                                                                            "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
                                                                                        }
                                                                                    }
                                                                                },
                                                                                {
                                                                                    "GroupBy" : {
                                                                                        "Aggregates" : [
                                                                                            {
                                                                                                "Function" : {
                                                                                                    "Id" : 5,
                                                                                                    "Arguments" : [
                                                                                                        {
                                                                                                            "Id" : 21
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 108
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "Function" : {
                                                                                                    "Id" : 2,
                                                                                                    "Arguments" : [
                                                                                                        {
                                                                                                            "Id" : 21
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 109
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "Function" : {
                                                                                                    "Id" : 2
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 110
                                                                                                }
                                                                                            },
                                                                                            {
                                                                                                "Function" : {
                                                                                                    "Id" : 5,
                                                                                                    "Arguments" : [
                                                                                                        {
                                                                                                            "Id" : 16
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "Column" : {
                                                                                                    "Id" : 111
                                                                                                }
                                                                                            }
                                                                                        ],
                                                                                        "KeyColumns" : [
                                                                                            {
                                                                                                "Id" : 8
                                                                                            },
                                                                                            {
                                                                                                "Id" : 39
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                },
                                                                                {
                                                                                    "Projection" : {
                                                                                        "Columns" : [
                                                                                            {
                                                                                                "Id" : 8
                                                                                            },
                                                                                            {
                                                                                                "Id" : 39
                                                                                            },
                                                                                            {
                                                                                                "Id" : 109
                                                                                            },
                                                                                            {
                                                                                                "Id" : 108
                                                                                            },
                                                                                            {
                                                                                                "Id" : 110
                                                                                            },
                                                                                            {
                                                                                                "Id" : 111
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                }
                                                                            ]
                                                                        },
                                                                        "E-Cost" : "0"
                                                                    }
                                                                ],
                                                                "Node Type" : "TableFullScan"
                                                            }
                                                        ],
                                                        "Operators" : [
                                                            {
                                                                "E-Rows" : "27135",
                                                                "Predicate" : "SearchPhrase != \"\"",
                                                                "Pushdown" : "True",
                                                                "Name" : "Filter",
                                                                "E-Size" : "738029.1429",
                                                                "E-Cost" : "0"
                                                            }
                                                        ],
                                                        "Node Type" : "Filter"
                                                    }
                                                ],
                                                "Node Type" : "HashShuffle (KeyColumns: [\"ClientIP\",\"SearchEngineID\"])",
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Name" : "Aggregate",
                                                "Phase" : "Final"
                                            }
                                        ],
                                        "Node Type" : "Aggregate"
                                    }
                                ],
                                "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"
    }
}
