(Analyzer analyzer)
| 66 | } |
| 67 | |
| 68 | @Override |
| 69 | public void init(Analyzer analyzer) { |
| 70 | for (SlotDescriptor slot : unpivotTableRef_.getDesc().getMaterializedSlots()) { |
| 71 | Expr e = unpivotTableRef_.getSourceExprMap().get(slot.getId()); |
| 72 | if (e == null) { |
| 73 | sourceExprs_.add(null); |
| 74 | } else { |
| 75 | sourceExprs_.add( |
| 76 | e.substitute(getChild(0).getOutputSmap(), analyzer, true)); |
| 77 | } |
| 78 | } |
| 79 | if (unpivotTableRef_.getUnpivotExprMap() != null) { |
| 80 | for (Map.Entry<Expr, LiteralExpr> e : |
| 81 | unpivotTableRef_.getUnpivotExprMap().entrySet()) { |
| 82 | Expr result = e.getKey().substitute(getChild(0).getOutputSmap(), analyzer, true); |
| 83 | dataExprs_.add(result); |
| 84 | headerExprs_.add(e.getValue()); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | conjuncts_ = orderConjunctsByCost(conjuncts_); |
| 89 | computeMemLayout(analyzer); |
| 90 | createDefaultSmap(analyzer); |
| 91 | computeStats(analyzer); |
| 92 | } |
| 93 | |
| 94 | @Override |
| 95 | protected void toThrift(TPlanNode msg) { |
nothing calls this directly
no test coverage detected