final RexNode condition =
rexBuilder.makeCall(SqlStdOperatorTable.GREATER_THAN,
rexBuilder.makeFieldAccess(
rexBuilder.makeRangeReference(tableRel), "i", true),
rexBuilder.makeExactLiteral(BigDecimal.ONE));
final FilterRel filterRel =
new FilterRel(cluster, tableRel, condition);
// Specify that the result should be in Enumerable convention.
final RelNode rootRel = filterRel;
final RelOptPlanner planner = cluster.getPlanner();
RelTraitSet desiredTraits = rootRel.getTraitSet().replace(