return node.getSource().accept(this, context);
}
if (node.getSampleType() == SampleNode.Type.POISSONIZED) {
PhysicalOperation source = node.getSource().accept(this, context);
OperatorFactory operatorFactory = new SampleOperatorFactory(context.getNextOperatorId(), node.getSampleRatio(), node.isRescaled(), source.getTupleInfos());
checkState(node.getSampleWeightSymbol().isPresent(), "sample weight symbol missing");
Map<Symbol, Input> layout = ImmutableMap.<Symbol, Input>builder().putAll(source.getLayout()).put(node.getSampleWeightSymbol().get(), new Input(source.getTupleInfos().size())).build();
return new PhysicalOperation(operatorFactory, layout, source);
}