{
    "Plan" : {
        "Plans" : [
            {
                "PlanNodeId" : 27,
                "Plans" : [
                    {
                        "PlanNodeId" : 26,
                        "Plans" : [
                            {
                                "PlanNodeId" : 25,
                                "Plans" : [
                                    {
                                        "PlanNodeId" : 24,
                                        "Plans" : [
                                            {
                                                "PlanNodeId" : 23,
                                                "Plans" : [
                                                    {
                                                        "Tables" : [
                                                            "olap_yatests/tpch/s1/partsupp"
                                                        ],
                                                        "PlanNodeId" : 22,
                                                        "Plans" : [
                                                            {
                                                                "PlanNodeId" : 21,
                                                                "Plans" : [
                                                                    {
                                                                        "PlanNodeId" : 20,
                                                                        "Plans" : [
                                                                            {
                                                                                "PlanNodeId" : 19,
                                                                                "Plans" : [
                                                                                    {
                                                                                        "Tables" : [
                                                                                            "olap_yatests/tpch/s1/supplier"
                                                                                        ],
                                                                                        "PlanNodeId" : 18,
                                                                                        "Plans" : [
                                                                                            {
                                                                                                "PlanNodeId" : 17,
                                                                                                "Plans" : [
                                                                                                    {
                                                                                                        "PlanNodeId" : 16,
                                                                                                        "Plans" : [
                                                                                                            {
                                                                                                                "PlanNodeId" : 15,
                                                                                                                "Plans" : [
                                                                                                                    {
                                                                                                                        "Tables" : [
                                                                                                                            "olap_yatests/tpch/s1/nation"
                                                                                                                        ],
                                                                                                                        "PlanNodeId" : 14,
                                                                                                                        "Operators" : [
                                                                                                                            {
                                                                                                                                "Inputs" : [
                                                                                                                                    {
                                                                                                                                        "InternalOperatorId" : 1
                                                                                                                                    }
                                                                                                                                ],
                                                                                                                                "E-Rows" : "2.5",
                                                                                                                                "Predicate" : "n_name == \"GERMANY\"",
                                                                                                                                "Pushdown" : "True",
                                                                                                                                "Name" : "Filter",
                                                                                                                                "E-Size" : "121.2",
                                                                                                                                "E-Cost" : "0"
                                                                                                                            },
                                                                                                                            {
                                                                                                                                "Scan" : "Parallel",
                                                                                                                                "E-Size" : "1212",
                                                                                                                                "ReadRanges" : [
                                                                                                                                    "n_nationkey (-∞, +∞)"
                                                                                                                                ],
                                                                                                                                "Name" : "TableFullScan",
                                                                                                                                "Inputs" : [ ],
                                                                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/nation",
                                                                                                                                "E-Rows" : "25",
                                                                                                                                "Table" : "olap_yatests/tpch/s1/nation",
                                                                                                                                "ReadColumns" : [
                                                                                                                                    "n_name",
                                                                                                                                    "n_nationkey"
                                                                                                                                ],
                                                                                                                                "SsaProgram" : {
                                                                                                                                    "Command" : [
                                                                                                                                        {
                                                                                                                                            "Assign" : {
                                                                                                                                                "Constant" : {
                                                                                                                                                    "Bytes" : "GERMANY"
                                                                                                                                                },
                                                                                                                                                "Column" : {
                                                                                                                                                    "Id" : 5
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        },
                                                                                                                                        {
                                                                                                                                            "Assign" : {
                                                                                                                                                "Function" : {
                                                                                                                                                    "YqlOperationId" : 11,
                                                                                                                                                    "KernelIdx" : 0,
                                                                                                                                                    "FunctionType" : 2,
                                                                                                                                                    "Arguments" : [
                                                                                                                                                        {
                                                                                                                                                            "Id" : 2
                                                                                                                                                        },
                                                                                                                                                        {
                                                                                                                                                            "Id" : 5
                                                                                                                                                        }
                                                                                                                                                    ]
                                                                                                                                                },
                                                                                                                                                "Column" : {
                                                                                                                                                    "Id" : 6
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        },
                                                                                                                                        {
                                                                                                                                            "Filter" : {
                                                                                                                                                "Predicate" : {
                                                                                                                                                    "Id" : 6
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        },
                                                                                                                                        {
                                                                                                                                            "Projection" : {
                                                                                                                                                "Columns" : [
                                                                                                                                                    {
                                                                                                                                                        "Id" : 3
                                                                                                                                                    }
                                                                                                                                                ]
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                    ]
                                                                                                                                },
                                                                                                                                "E-Cost" : "0"
                                                                                                                            }
                                                                                                                        ],
                                                                                                                        "Node Type" : "Filter-TableFullScan"
                                                                                                                    }
                                                                                                                ],
                                                                                                                "Node Type" : "UnionAll",
                                                                                                                "PlanNodeType" : "Connection"
                                                                                                            }
                                                                                                        ],
                                                                                                        "Node Type" : "Stage"
                                                                                                    }
                                                                                                ],
                                                                                                "Node Type" : "Broadcast",
                                                                                                "PlanNodeType" : "Connection"
                                                                                            }
                                                                                        ],
                                                                                        "Operators" : [
                                                                                            {
                                                                                                "Inputs" : [
                                                                                                    {
                                                                                                        "InternalOperatorId" : 1
                                                                                                    },
                                                                                                    {
                                                                                                        "ExternalPlanNodeId" : 17
                                                                                                    }
                                                                                                ],
                                                                                                "E-Rows" : "1000",
                                                                                                "Condition" : "s.s_nationkey = n.n_nationkey",
                                                                                                "Name" : "InnerJoin (MapJoin)",
                                                                                                "E-Size" : "80099.42857",
                                                                                                "E-Cost" : "16506.75"
                                                                                            },
                                                                                            {
                                                                                                "Scan" : "Parallel",
                                                                                                "E-Size" : "316194.2857",
                                                                                                "ReadRanges" : [
                                                                                                    "s_suppkey (-∞, +∞)"
                                                                                                ],
                                                                                                "Name" : "TableFullScan",
                                                                                                "Inputs" : [ ],
                                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/supplier",
                                                                                                "E-Rows" : "10000",
                                                                                                "Table" : "olap_yatests/tpch/s1/supplier",
                                                                                                "ReadColumns" : [
                                                                                                    "s_nationkey",
                                                                                                    "s_suppkey"
                                                                                                ],
                                                                                                "SsaProgram" : {
                                                                                                    "Command" : [
                                                                                                        {
                                                                                                            "Projection" : {
                                                                                                                "Columns" : [
                                                                                                                    {
                                                                                                                        "Id" : 5
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "Id" : 7
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "E-Cost" : "0"
                                                                                            }
                                                                                        ],
                                                                                        "Node Type" : "InnerJoin (MapJoin)-TableFullScan"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "UnionAll",
                                                                                "PlanNodeType" : "Connection"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "Stage"
                                                                    }
                                                                ],
                                                                "Node Type" : "Broadcast",
                                                                "PlanNodeType" : "Connection"
                                                            }
                                                        ],
                                                        "Operators" : [
                                                            {
                                                                "Inputs" : [
                                                                    {
                                                                        "InternalOperatorId" : 1
                                                                    },
                                                                    {
                                                                        "InternalOperatorId" : 1
                                                                    },
                                                                    {
                                                                        "InternalOperatorId" : 1
                                                                    }
                                                                ],
                                                                "GroupBy" : "[0]",
                                                                "Aggregation" : "SUM",
                                                                "Name" : "Aggregate",
                                                                "Phase" : "Intermediate"
                                                            },
                                                            {
                                                                "Inputs" : [
                                                                    {
                                                                        "InternalOperatorId" : 2
                                                                    },
                                                                    {
                                                                        "ExternalPlanNodeId" : 21
                                                                    }
                                                                ],
                                                                "E-Rows" : "80000",
                                                                "Condition" : "ps.ps_suppkey = s.s_suppkey",
                                                                "Name" : "InnerJoin (MapJoin)",
                                                                "E-Size" : "10769579.89",
                                                                "E-Cost" : "1339206.75"
                                                            },
                                                            {
                                                                "Scan" : "Parallel",
                                                                "E-Size" : "43616256",
                                                                "ReadRanges" : [
                                                                    "ps_partkey (-∞, +∞)",
                                                                    "ps_suppkey (-∞, +∞)"
                                                                ],
                                                                "Name" : "TableFullScan",
                                                                "Inputs" : [ ],
                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/partsupp",
                                                                "E-Rows" : "800000",
                                                                "Table" : "olap_yatests/tpch/s1/partsupp",
                                                                "ReadColumns" : [
                                                                    "ps_availqty",
                                                                    "ps_partkey",
                                                                    "ps_suppkey",
                                                                    "ps_supplycost"
                                                                ],
                                                                "SsaProgram" : {
                                                                    "Command" : [
                                                                        {
                                                                            "Projection" : {
                                                                                "Columns" : [
                                                                                    {
                                                                                        "Id" : 1
                                                                                    },
                                                                                    {
                                                                                        "Id" : 3
                                                                                    },
                                                                                    {
                                                                                        "Id" : 4
                                                                                    },
                                                                                    {
                                                                                        "Id" : 5
                                                                                    }
                                                                                ]
                                                                            }
                                                                        }
                                                                    ]
                                                                },
                                                                "E-Cost" : "0"
                                                            }
                                                        ],
                                                        "Node Type" : "Aggregate-InnerJoin (MapJoin)-TableFullScan"
                                                    }
                                                ],
                                                "HashFunc" : "HashV1",
                                                "Node Type" : "HashShuffle",
                                                "KeyColumns" : [
                                                    "ps_partkey"
                                                ],
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 1
                                                    },
                                                    {
                                                        "InternalOperatorId" : 1
                                                    }
                                                ],
                                                "SortBy" : "row.value",
                                                "Name" : "Sort"
                                            },
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 2
                                                    }
                                                ],
                                                "E-Rows" : "24000",
                                                "Predicate" : "item.v.value > item.t.threshold",
                                                "Name" : "Filter",
                                                "E-Size" : "3230873.966",
                                                "E-Cost" : "1339206.75"
                                            },
                                            {
                                                "Inputs" : [
                                                    {
                                                        "ExternalPlanNodeId" : 23
                                                    },
                                                    {
                                                        "InternalOperatorId" : 3
                                                    }
                                                ],
                                                "Name" : "CrossJoin"
                                            },
                                            {
                                                "Inputs" : [ ],
                                                "ToFlow" : "precompute_0_0",
                                                "Name" : "ToFlow"
                                            }
                                        ],
                                        "Node Type" : "Sort-Filter-CrossJoin-ConstantExpr",
                                        "CTE Name" : "precompute_0_0"
                                    }
                                ],
                                "Node Type" : "Merge",
                                "SortColumns" : [
                                    "value (Desc)"
                                ],
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Node Type" : "Stage"
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            },
            {
                "PlanNodeId" : 12,
                "Subplan Name" : "CTE precompute_0_0",
                "Plans" : [
                    {
                        "PlanNodeId" : 11,
                        "Plans" : [
                            {
                                "PlanNodeId" : 10,
                                "Plans" : [
                                    {
                                        "Tables" : [
                                            "olap_yatests/tpch/s1/partsupp"
                                        ],
                                        "PlanNodeId" : 9,
                                        "Plans" : [
                                            {
                                                "PlanNodeId" : 8,
                                                "Plans" : [
                                                    {
                                                        "PlanNodeId" : 7,
                                                        "Plans" : [
                                                            {
                                                                "PlanNodeId" : 6,
                                                                "Plans" : [
                                                                    {
                                                                        "Tables" : [
                                                                            "olap_yatests/tpch/s1/supplier"
                                                                        ],
                                                                        "PlanNodeId" : 5,
                                                                        "Plans" : [
                                                                            {
                                                                                "PlanNodeId" : 4,
                                                                                "Plans" : [
                                                                                    {
                                                                                        "PlanNodeId" : 3,
                                                                                        "Plans" : [
                                                                                            {
                                                                                                "PlanNodeId" : 2,
                                                                                                "Plans" : [
                                                                                                    {
                                                                                                        "Tables" : [
                                                                                                            "olap_yatests/tpch/s1/nation"
                                                                                                        ],
                                                                                                        "PlanNodeId" : 1,
                                                                                                        "Operators" : [
                                                                                                            {
                                                                                                                "Inputs" : [
                                                                                                                    {
                                                                                                                        "InternalOperatorId" : 1
                                                                                                                    }
                                                                                                                ],
                                                                                                                "E-Rows" : "2.5",
                                                                                                                "Predicate" : "n_name == \"GERMANY\"",
                                                                                                                "Pushdown" : "True",
                                                                                                                "Name" : "Filter",
                                                                                                                "E-Size" : "121.2",
                                                                                                                "E-Cost" : "0"
                                                                                                            },
                                                                                                            {
                                                                                                                "Scan" : "Parallel",
                                                                                                                "E-Size" : "1212",
                                                                                                                "ReadRanges" : [
                                                                                                                    "n_nationkey (-∞, +∞)"
                                                                                                                ],
                                                                                                                "Name" : "TableFullScan",
                                                                                                                "Inputs" : [ ],
                                                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/nation",
                                                                                                                "E-Rows" : "25",
                                                                                                                "Table" : "olap_yatests/tpch/s1/nation",
                                                                                                                "ReadColumns" : [
                                                                                                                    "n_name",
                                                                                                                    "n_nationkey"
                                                                                                                ],
                                                                                                                "SsaProgram" : {
                                                                                                                    "Command" : [
                                                                                                                        {
                                                                                                                            "Assign" : {
                                                                                                                                "Constant" : {
                                                                                                                                    "Bytes" : "GERMANY"
                                                                                                                                },
                                                                                                                                "Column" : {
                                                                                                                                    "Id" : 5
                                                                                                                                }
                                                                                                                            }
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "Assign" : {
                                                                                                                                "Function" : {
                                                                                                                                    "YqlOperationId" : 11,
                                                                                                                                    "KernelIdx" : 0,
                                                                                                                                    "FunctionType" : 2,
                                                                                                                                    "Arguments" : [
                                                                                                                                        {
                                                                                                                                            "Id" : 2
                                                                                                                                        },
                                                                                                                                        {
                                                                                                                                            "Id" : 5
                                                                                                                                        }
                                                                                                                                    ]
                                                                                                                                },
                                                                                                                                "Column" : {
                                                                                                                                    "Id" : 6
                                                                                                                                }
                                                                                                                            }
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "Filter" : {
                                                                                                                                "Predicate" : {
                                                                                                                                    "Id" : 6
                                                                                                                                }
                                                                                                                            }
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "Projection" : {
                                                                                                                                "Columns" : [
                                                                                                                                    {
                                                                                                                                        "Id" : 3
                                                                                                                                    }
                                                                                                                                ]
                                                                                                                            }
                                                                                                                        }
                                                                                                                    ]
                                                                                                                },
                                                                                                                "E-Cost" : "0"
                                                                                                            }
                                                                                                        ],
                                                                                                        "Node Type" : "Filter-TableFullScan"
                                                                                                    }
                                                                                                ],
                                                                                                "Node Type" : "UnionAll",
                                                                                                "PlanNodeType" : "Connection"
                                                                                            }
                                                                                        ],
                                                                                        "Node Type" : "Stage"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "Broadcast",
                                                                                "PlanNodeType" : "Connection"
                                                                            }
                                                                        ],
                                                                        "Operators" : [
                                                                            {
                                                                                "Inputs" : [
                                                                                    {
                                                                                        "InternalOperatorId" : 1
                                                                                    },
                                                                                    {
                                                                                        "ExternalPlanNodeId" : 4
                                                                                    }
                                                                                ],
                                                                                "E-Rows" : "1000",
                                                                                "Condition" : "s.s_nationkey = n.n_nationkey",
                                                                                "Name" : "InnerJoin (MapJoin)",
                                                                                "E-Size" : "80099.42857",
                                                                                "E-Cost" : "16506.75"
                                                                            },
                                                                            {
                                                                                "Scan" : "Parallel",
                                                                                "E-Size" : "316194.2857",
                                                                                "ReadRanges" : [
                                                                                    "s_suppkey (-∞, +∞)"
                                                                                ],
                                                                                "Name" : "TableFullScan",
                                                                                "Inputs" : [ ],
                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/supplier",
                                                                                "E-Rows" : "10000",
                                                                                "Table" : "olap_yatests/tpch/s1/supplier",
                                                                                "ReadColumns" : [
                                                                                    "s_nationkey",
                                                                                    "s_suppkey"
                                                                                ],
                                                                                "SsaProgram" : {
                                                                                    "Command" : [
                                                                                        {
                                                                                            "Projection" : {
                                                                                                "Columns" : [
                                                                                                    {
                                                                                                        "Id" : 5
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 7
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "E-Cost" : "0"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "InnerJoin (MapJoin)-TableFullScan"
                                                                    }
                                                                ],
                                                                "Node Type" : "UnionAll",
                                                                "PlanNodeType" : "Connection"
                                                            }
                                                        ],
                                                        "Node Type" : "Stage"
                                                    }
                                                ],
                                                "Node Type" : "Broadcast",
                                                "PlanNodeType" : "Connection"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Inputs" : [
                                                    {
                                                        "InternalOperatorId" : 1
                                                    },
                                                    {
                                                        "ExternalPlanNodeId" : 8
                                                    }
                                                ],
                                                "E-Rows" : "80000",
                                                "Condition" : "ps.ps_suppkey = s.s_suppkey",
                                                "Name" : "InnerJoin (MapJoin)",
                                                "E-Size" : "10769579.89",
                                                "E-Cost" : "1339206.75"
                                            },
                                            {
                                                "Scan" : "Parallel",
                                                "E-Size" : "43616256",
                                                "ReadRanges" : [
                                                    "ps_partkey (-∞, +∞)",
                                                    "ps_suppkey (-∞, +∞)"
                                                ],
                                                "Name" : "TableFullScan",
                                                "Inputs" : [ ],
                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/partsupp",
                                                "E-Rows" : "800000",
                                                "Table" : "olap_yatests/tpch/s1/partsupp",
                                                "ReadColumns" : [
                                                    "ps_availqty",
                                                    "ps_partkey",
                                                    "ps_suppkey",
                                                    "ps_supplycost"
                                                ],
                                                "SsaProgram" : {
                                                    "Command" : [
                                                        {
                                                            "Projection" : {
                                                                "Columns" : [
                                                                    {
                                                                        "Id" : 1
                                                                    },
                                                                    {
                                                                        "Id" : 3
                                                                    },
                                                                    {
                                                                        "Id" : 4
                                                                    },
                                                                    {
                                                                        "Id" : 5
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "E-Cost" : "0"
                                            }
                                        ],
                                        "Node Type" : "InnerJoin (MapJoin)-TableFullScan"
                                    }
                                ],
                                "Node Type" : "UnionAll",
                                "PlanNodeType" : "Connection"
                            }
                        ],
                        "Operators" : [
                            {
                                "Inputs" : [
                                    {
                                        "InternalOperatorId" : 1
                                    }
                                ],
                                "Name" : "Aggregate",
                                "Phase" : "Final"
                            },
                            {
                                "Inputs" : [
                                    {
                                        "InternalOperatorId" : 2
                                    }
                                ],
                                "Name" : "Limit",
                                "Limit" : "1"
                            },
                            {
                                "Inputs" : [
                                    {
                                        "ExternalPlanNodeId" : 10
                                    }
                                ],
                                "Name" : "Aggregate",
                                "Phase" : "Final"
                            }
                        ],
                        "Node Type" : "Aggregate-Limit-Aggregate"
                    }
                ],
                "Node Type" : "Precompute_0",
                "Parent Relationship" : "InitPlan",
                "PlanNodeType" : "Materialize"
            }
        ],
        "Node Type" : "Query",
        "Stats" : {
            "ResourcePoolId" : "default"
        },
        "PlanNodeType" : "Query"
    },
    "meta" : {
        "version" : "0.2",
        "type" : "query"
    },
    "tables" : [
        {
            "name" : "/local/test_db/olap_yatests/tpch/s1/nation",
            "reads" : [
                {
                    "columns" : [
                        "n_name",
                        "n_nationkey"
                    ],
                    "scan_by" : [
                        "n_nationkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                },
                {
                    "columns" : [
                        "n_name",
                        "n_nationkey"
                    ],
                    "scan_by" : [
                        "n_nationkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                }
            ]
        },
        {
            "name" : "/local/test_db/olap_yatests/tpch/s1/partsupp",
            "reads" : [
                {
                    "columns" : [
                        "ps_availqty",
                        "ps_partkey",
                        "ps_suppkey",
                        "ps_supplycost"
                    ],
                    "scan_by" : [
                        "ps_partkey (-∞, +∞)",
                        "ps_suppkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                },
                {
                    "columns" : [
                        "ps_availqty",
                        "ps_partkey",
                        "ps_suppkey",
                        "ps_supplycost"
                    ],
                    "scan_by" : [
                        "ps_partkey (-∞, +∞)",
                        "ps_suppkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                }
            ]
        },
        {
            "name" : "/local/test_db/olap_yatests/tpch/s1/supplier",
            "reads" : [
                {
                    "columns" : [
                        "s_nationkey",
                        "s_suppkey"
                    ],
                    "scan_by" : [
                        "s_suppkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                },
                {
                    "columns" : [
                        "s_nationkey",
                        "s_suppkey"
                    ],
                    "scan_by" : [
                        "s_suppkey (-∞, +∞)"
                    ],
                    "type" : "FullScan"
                }
            ]
        }
    ],
    "SimplifiedPlan" : {
        "PlanNodeId" : 0,
        "Plans" : [
            {
                "PlanNodeId" : 1,
                "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" : "43616256",
                                                                                "ReadRanges" : [
                                                                                    "ps_partkey (-∞, +∞)",
                                                                                    "ps_suppkey (-∞, +∞)"
                                                                                ],
                                                                                "Name" : "TableFullScan",
                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/partsupp",
                                                                                "E-Rows" : "800000",
                                                                                "Table" : "olap_yatests/tpch/s1/partsupp",
                                                                                "ReadColumns" : [
                                                                                    "ps_availqty",
                                                                                    "ps_partkey",
                                                                                    "ps_suppkey",
                                                                                    "ps_supplycost"
                                                                                ],
                                                                                "SsaProgram" : {
                                                                                    "Command" : [
                                                                                        {
                                                                                            "Projection" : {
                                                                                                "Columns" : [
                                                                                                    {
                                                                                                        "Id" : 1
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 3
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 4
                                                                                                    },
                                                                                                    {
                                                                                                        "Id" : 5
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        }
                                                                                    ]
                                                                                },
                                                                                "E-Cost" : "0"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "TableFullScan"
                                                                    },
                                                                    {
                                                                        "PlanNodeId" : 14,
                                                                        "Plans" : [
                                                                            {
                                                                                "PlanNodeId" : 15,
                                                                                "Operators" : [
                                                                                    {
                                                                                        "Scan" : "Parallel",
                                                                                        "E-Size" : "316194.2857",
                                                                                        "ReadRanges" : [
                                                                                            "s_suppkey (-∞, +∞)"
                                                                                        ],
                                                                                        "Name" : "TableFullScan",
                                                                                        "Path" : "/local/test_db/olap_yatests/tpch/s1/supplier",
                                                                                        "E-Rows" : "10000",
                                                                                        "Table" : "olap_yatests/tpch/s1/supplier",
                                                                                        "ReadColumns" : [
                                                                                            "s_nationkey",
                                                                                            "s_suppkey"
                                                                                        ],
                                                                                        "SsaProgram" : {
                                                                                            "Command" : [
                                                                                                {
                                                                                                    "Projection" : {
                                                                                                        "Columns" : [
                                                                                                            {
                                                                                                                "Id" : 5
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 7
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "E-Cost" : "0"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "TableFullScan"
                                                                            },
                                                                            {
                                                                                "PlanNodeId" : 19,
                                                                                "Plans" : [
                                                                                    {
                                                                                        "PlanNodeId" : 20,
                                                                                        "Operators" : [
                                                                                            {
                                                                                                "Scan" : "Parallel",
                                                                                                "E-Size" : "1212",
                                                                                                "ReadRanges" : [
                                                                                                    "n_nationkey (-∞, +∞)"
                                                                                                ],
                                                                                                "Name" : "TableFullScan",
                                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/nation",
                                                                                                "E-Rows" : "25",
                                                                                                "Table" : "olap_yatests/tpch/s1/nation",
                                                                                                "ReadColumns" : [
                                                                                                    "n_name",
                                                                                                    "n_nationkey"
                                                                                                ],
                                                                                                "SsaProgram" : {
                                                                                                    "Command" : [
                                                                                                        {
                                                                                                            "Assign" : {
                                                                                                                "Constant" : {
                                                                                                                    "Bytes" : "GERMANY"
                                                                                                                },
                                                                                                                "Column" : {
                                                                                                                    "Id" : 5
                                                                                                                }
                                                                                                            }
                                                                                                        },
                                                                                                        {
                                                                                                            "Assign" : {
                                                                                                                "Function" : {
                                                                                                                    "YqlOperationId" : 11,
                                                                                                                    "KernelIdx" : 0,
                                                                                                                    "FunctionType" : 2,
                                                                                                                    "Arguments" : [
                                                                                                                        {
                                                                                                                            "Id" : 2
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "Id" : 5
                                                                                                                        }
                                                                                                                    ]
                                                                                                                },
                                                                                                                "Column" : {
                                                                                                                    "Id" : 6
                                                                                                                }
                                                                                                            }
                                                                                                        },
                                                                                                        {
                                                                                                            "Filter" : {
                                                                                                                "Predicate" : {
                                                                                                                    "Id" : 6
                                                                                                                }
                                                                                                            }
                                                                                                        },
                                                                                                        {
                                                                                                            "Projection" : {
                                                                                                                "Columns" : [
                                                                                                                    {
                                                                                                                        "Id" : 3
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "E-Cost" : "0"
                                                                                            }
                                                                                        ],
                                                                                        "Node Type" : "TableFullScan"
                                                                                    }
                                                                                ],
                                                                                "Operators" : [
                                                                                    {
                                                                                        "E-Rows" : "2.5",
                                                                                        "Predicate" : "n_name == \"GERMANY\"",
                                                                                        "Pushdown" : "True",
                                                                                        "Name" : "Filter",
                                                                                        "E-Size" : "121.2",
                                                                                        "E-Cost" : "0"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "Filter"
                                                                            }
                                                                        ],
                                                                        "Operators" : [
                                                                            {
                                                                                "E-Rows" : "1000",
                                                                                "Condition" : "s.s_nationkey = n.n_nationkey",
                                                                                "Name" : "InnerJoin (MapJoin)",
                                                                                "E-Size" : "80099.42857",
                                                                                "E-Cost" : "16506.75"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "InnerJoin (MapJoin)"
                                                                    }
                                                                ],
                                                                "Operators" : [
                                                                    {
                                                                        "E-Rows" : "80000",
                                                                        "Condition" : "ps.ps_suppkey = s.s_suppkey",
                                                                        "Name" : "InnerJoin (MapJoin)",
                                                                        "E-Size" : "10769579.89",
                                                                        "E-Cost" : "1339206.75"
                                                                    }
                                                                ],
                                                                "Node Type" : "InnerJoin (MapJoin)"
                                                            }
                                                        ],
                                                        "Operators" : [
                                                            {
                                                                "GroupBy" : "[0]",
                                                                "Aggregation" : "SUM",
                                                                "Name" : "Aggregate",
                                                                "Phase" : "Intermediate"
                                                            }
                                                        ],
                                                        "Node Type" : "Aggregate"
                                                    }
                                                ],
                                                "Node Type" : "HashShuffle (KeyColumns: [\"ps_partkey\"], HashFunc: \"HashV1\")",
                                                "PlanNodeType" : "Connection"
                                            },
                                            {
                                                "PlanNodeId" : 23,
                                                "Plans" : [
                                                    {
                                                        "PlanNodeId" : 24,
                                                        "Plans" : [
                                                            {
                                                                "PlanNodeId" : 25,
                                                                "Plans" : [
                                                                    {
                                                                        "PlanNodeId" : 27,
                                                                        "Plans" : [
                                                                            {
                                                                                "PlanNodeId" : 28,
                                                                                "Operators" : [
                                                                                    {
                                                                                        "Scan" : "Parallel",
                                                                                        "E-Size" : "43616256",
                                                                                        "ReadRanges" : [
                                                                                            "ps_partkey (-∞, +∞)",
                                                                                            "ps_suppkey (-∞, +∞)"
                                                                                        ],
                                                                                        "Name" : "TableFullScan",
                                                                                        "Path" : "/local/test_db/olap_yatests/tpch/s1/partsupp",
                                                                                        "E-Rows" : "800000",
                                                                                        "Table" : "olap_yatests/tpch/s1/partsupp",
                                                                                        "ReadColumns" : [
                                                                                            "ps_availqty",
                                                                                            "ps_partkey",
                                                                                            "ps_suppkey",
                                                                                            "ps_supplycost"
                                                                                        ],
                                                                                        "SsaProgram" : {
                                                                                            "Command" : [
                                                                                                {
                                                                                                    "Projection" : {
                                                                                                        "Columns" : [
                                                                                                            {
                                                                                                                "Id" : 1
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 3
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 4
                                                                                                            },
                                                                                                            {
                                                                                                                "Id" : 5
                                                                                                            }
                                                                                                        ]
                                                                                                    }
                                                                                                }
                                                                                            ]
                                                                                        },
                                                                                        "E-Cost" : "0"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "TableFullScan"
                                                                            },
                                                                            {
                                                                                "PlanNodeId" : 32,
                                                                                "Plans" : [
                                                                                    {
                                                                                        "PlanNodeId" : 33,
                                                                                        "Operators" : [
                                                                                            {
                                                                                                "Scan" : "Parallel",
                                                                                                "E-Size" : "316194.2857",
                                                                                                "ReadRanges" : [
                                                                                                    "s_suppkey (-∞, +∞)"
                                                                                                ],
                                                                                                "Name" : "TableFullScan",
                                                                                                "Path" : "/local/test_db/olap_yatests/tpch/s1/supplier",
                                                                                                "E-Rows" : "10000",
                                                                                                "Table" : "olap_yatests/tpch/s1/supplier",
                                                                                                "ReadColumns" : [
                                                                                                    "s_nationkey",
                                                                                                    "s_suppkey"
                                                                                                ],
                                                                                                "SsaProgram" : {
                                                                                                    "Command" : [
                                                                                                        {
                                                                                                            "Projection" : {
                                                                                                                "Columns" : [
                                                                                                                    {
                                                                                                                        "Id" : 5
                                                                                                                    },
                                                                                                                    {
                                                                                                                        "Id" : 7
                                                                                                                    }
                                                                                                                ]
                                                                                                            }
                                                                                                        }
                                                                                                    ]
                                                                                                },
                                                                                                "E-Cost" : "0"
                                                                                            }
                                                                                        ],
                                                                                        "Node Type" : "TableFullScan"
                                                                                    },
                                                                                    {
                                                                                        "PlanNodeId" : 37,
                                                                                        "Plans" : [
                                                                                            {
                                                                                                "PlanNodeId" : 38,
                                                                                                "Operators" : [
                                                                                                    {
                                                                                                        "Scan" : "Parallel",
                                                                                                        "E-Size" : "1212",
                                                                                                        "ReadRanges" : [
                                                                                                            "n_nationkey (-∞, +∞)"
                                                                                                        ],
                                                                                                        "Name" : "TableFullScan",
                                                                                                        "Path" : "/local/test_db/olap_yatests/tpch/s1/nation",
                                                                                                        "E-Rows" : "25",
                                                                                                        "Table" : "olap_yatests/tpch/s1/nation",
                                                                                                        "ReadColumns" : [
                                                                                                            "n_name",
                                                                                                            "n_nationkey"
                                                                                                        ],
                                                                                                        "SsaProgram" : {
                                                                                                            "Command" : [
                                                                                                                {
                                                                                                                    "Assign" : {
                                                                                                                        "Constant" : {
                                                                                                                            "Bytes" : "GERMANY"
                                                                                                                        },
                                                                                                                        "Column" : {
                                                                                                                            "Id" : 5
                                                                                                                        }
                                                                                                                    }
                                                                                                                },
                                                                                                                {
                                                                                                                    "Assign" : {
                                                                                                                        "Function" : {
                                                                                                                            "YqlOperationId" : 11,
                                                                                                                            "KernelIdx" : 0,
                                                                                                                            "FunctionType" : 2,
                                                                                                                            "Arguments" : [
                                                                                                                                {
                                                                                                                                    "Id" : 2
                                                                                                                                },
                                                                                                                                {
                                                                                                                                    "Id" : 5
                                                                                                                                }
                                                                                                                            ]
                                                                                                                        },
                                                                                                                        "Column" : {
                                                                                                                            "Id" : 6
                                                                                                                        }
                                                                                                                    }
                                                                                                                },
                                                                                                                {
                                                                                                                    "Filter" : {
                                                                                                                        "Predicate" : {
                                                                                                                            "Id" : 6
                                                                                                                        }
                                                                                                                    }
                                                                                                                },
                                                                                                                {
                                                                                                                    "Projection" : {
                                                                                                                        "Columns" : [
                                                                                                                            {
                                                                                                                                "Id" : 3
                                                                                                                            }
                                                                                                                        ]
                                                                                                                    }
                                                                                                                }
                                                                                                            ]
                                                                                                        },
                                                                                                        "E-Cost" : "0"
                                                                                                    }
                                                                                                ],
                                                                                                "Node Type" : "TableFullScan"
                                                                                            }
                                                                                        ],
                                                                                        "Operators" : [
                                                                                            {
                                                                                                "E-Rows" : "2.5",
                                                                                                "Predicate" : "n_name == \"GERMANY\"",
                                                                                                "Pushdown" : "True",
                                                                                                "Name" : "Filter",
                                                                                                "E-Size" : "121.2",
                                                                                                "E-Cost" : "0"
                                                                                            }
                                                                                        ],
                                                                                        "Node Type" : "Filter"
                                                                                    }
                                                                                ],
                                                                                "Operators" : [
                                                                                    {
                                                                                        "E-Rows" : "1000",
                                                                                        "Condition" : "s.s_nationkey = n.n_nationkey",
                                                                                        "Name" : "InnerJoin (MapJoin)",
                                                                                        "E-Size" : "80099.42857",
                                                                                        "E-Cost" : "16506.75"
                                                                                    }
                                                                                ],
                                                                                "Node Type" : "InnerJoin (MapJoin)"
                                                                            }
                                                                        ],
                                                                        "Operators" : [
                                                                            {
                                                                                "E-Rows" : "80000",
                                                                                "Condition" : "ps.ps_suppkey = s.s_suppkey",
                                                                                "Name" : "InnerJoin (MapJoin)",
                                                                                "E-Size" : "10769579.89",
                                                                                "E-Cost" : "1339206.75"
                                                                            }
                                                                        ],
                                                                        "Node Type" : "InnerJoin (MapJoin)"
                                                                    }
                                                                ],
                                                                "Operators" : [
                                                                    {
                                                                        "Name" : "Aggregate",
                                                                        "Phase" : "Final"
                                                                    }
                                                                ],
                                                                "Node Type" : "Aggregate"
                                                            }
                                                        ],
                                                        "Operators" : [
                                                            {
                                                                "Name" : "Limit",
                                                                "Limit" : "1"
                                                            }
                                                        ],
                                                        "Node Type" : "Limit"
                                                    }
                                                ],
                                                "Operators" : [
                                                    {
                                                        "Name" : "Aggregate",
                                                        "Phase" : "Final"
                                                    }
                                                ],
                                                "Node Type" : "Aggregate"
                                            }
                                        ],
                                        "Operators" : [
                                            {
                                                "Name" : "CrossJoin"
                                            }
                                        ],
                                        "Node Type" : "CrossJoin"
                                    }
                                ],
                                "Operators" : [
                                    {
                                        "E-Rows" : "24000",
                                        "Predicate" : "item.v.value > item.t.threshold",
                                        "Name" : "Filter",
                                        "E-Size" : "3230873.966",
                                        "E-Cost" : "1339206.75"
                                    }
                                ],
                                "Node Type" : "Filter"
                            }
                        ],
                        "Operators" : [
                            {
                                "SortBy" : "row.value",
                                "Name" : "Sort"
                            }
                        ],
                        "Node Type" : "Sort"
                    }
                ],
                "Node Type" : "ResultSet_1",
                "PlanNodeType" : "ResultSet"
            }
        ],
        "Node Type" : "Query",
        "OptimizerStats" : {
            "EquiJoinsCount" : 2,
            "JoinsCount" : 3
        },
        "PlanNodeType" : "Query"
    }
}
