Use fromTrait of the just previously converted RelNode instead of the original RelNode.