"Prel.WriterPrule");
}
@Override
public void onMatch(RelOptRuleCall call) {
final DrillWriterRelBase writer = call.rel(0);
final RelNode input = call.rel(1);
final RelTraitSet traits = input.getTraitSet().plus(Prel.DRILL_PHYSICAL);
final RelNode convertedInput = convert(input, traits);
if (!new WriteTraitPull(call).go(writer, convertedInput)) {
DrillWriterRelBase newWriter = new WriterPrel(writer.getCluster(), convertedInput.getTraitSet(),
convertedInput, writer.getCreateTableEntry());
call.transformTo(newWriter);
}
}