xuzifu666 commented on code in PR #4463:
URL: https://github.com/apache/calcite/pull/4463#discussion_r2193774391
##########
core/src/test/java/org/apache/calcite/test/SqlToRelConverterTest.java:
##########
@@ -3129,6 +3134,50 @@ void checkCorrelatedMapSubQuery(boolean expand) {
assertThat(rels.get(0), instanceOf(LogicalRepeatUnion.class));
}
+ /** Test case for
+ * <a
href="https://issues.apache.org/jira/browse/CALCITE-CALCITE-7090">[CALCITE-CALCITE-7090]
+ * Support LogicalRepeatUnion in RelHomogeneousShuttle</a>. */
+ @Test void testRelHomogeneousShuttleForLogicalRepeatUnion() {
+ final String sql = "WITH RECURSIVE delta(n) AS (\n"
+ + "VALUES (1)\n"
+ + "UNION ALL\n"
+ + "SELECT n+1 FROM delta WHERE n < 10\n"
+ + ")\n"
+ + "SELECT * FROM delta";
+ final RelNode rel = sql(sql).toRel();
+ final List<RelNode> rels = new ArrayList<>();
+ // RelHomogeneousShuttle delegates all calls to visit(RelNode)
+
Review Comment:
This blank line is a bit strange, you can delete it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]