@Override public Void visitExplainAnalyze(ExplainAnalyzeNode node, Set<Symbol> boundSymbols) { PlanNode source = node.getSource(); source.accept(this, boundSymbols); // visit child return null; }
@Override public Map<PlanNodeId, SplitSource> visitExplainAnalyze(ExplainAnalyzeNode node, Void context) { return node.getSource().accept(this, context); }
@Override public Void visitExplainAnalyze(ExplainAnalyzeNode node, Set<Symbol> boundSymbols) { PlanNode source = node.getSource(); source.accept(this, boundSymbols); // visit child return null; }
@Override public Map<PlanNodeId, SplitSource> visitExplainAnalyze(ExplainAnalyzeNode node, Void context) { return node.getSource().accept(this, context); }
@Override public PlanNode visitExplainAnalyze(ExplainAnalyzeNode node, RewriteContext<Set<Symbol>> context) { return context.defaultRewrite(node, ImmutableSet.copyOf(node.getSource().getOutputSymbols())); }
@Override public PlanNode visitExplainAnalyze(ExplainAnalyzeNode node, RewriteContext<Set<Symbol>> context) { return context.defaultRewrite(node, ImmutableSet.copyOf(node.getSource().getOutputSymbols())); }
@Override public PhysicalOperation visitExplainAnalyze(ExplainAnalyzeNode node, LocalExecutionPlanContext context) { ExplainAnalyzeContext analyzeContext = explainAnalyzeContext .orElseThrow(() -> new IllegalStateException("ExplainAnalyze can only run on coordinator")); PhysicalOperation source = node.getSource().accept(this, context); OperatorFactory operatorFactory = new ExplainAnalyzeOperatorFactory( context.getNextOperatorId(), node.getId(), analyzeContext.getQueryPerformanceFetcher(), metadata.getFunctionRegistry(), node.isVerbose()); return new PhysicalOperation(operatorFactory, makeLayout(node), context, source); }
@Override public PhysicalOperation visitExplainAnalyze(ExplainAnalyzeNode node, LocalExecutionPlanContext context) { ExplainAnalyzeContext analyzeContext = explainAnalyzeContext .orElseThrow(() -> new IllegalStateException("ExplainAnalyze can only run on coordinator")); PhysicalOperation source = node.getSource().accept(this, context); OperatorFactory operatorFactory = new ExplainAnalyzeOperatorFactory( context.getNextOperatorId(), node.getId(), analyzeContext.getQueryPerformanceFetcher(), metadata.getFunctionRegistry(), node.isVerbose()); return new PhysicalOperation(operatorFactory, makeLayout(node), context, source); }
@Override public PlanNode visitExplainAnalyze(ExplainAnalyzeNode node, RewriteContext<Void> context) { PlanNode source = context.rewrite(node.getSource()); return new ExplainAnalyzeNode(node.getId(), source, canonicalize(node.getOutputSymbol()), node.isVerbose()); }
@Override public PlanNode visitExplainAnalyze(ExplainAnalyzeNode node, RewriteContext<Void> context) { PlanNode source = context.rewrite(node.getSource()); return new ExplainAnalyzeNode(node.getId(), source, canonicalize(node.getOutputSymbol()), node.isVerbose()); }