nuno-faria commented on code in PR #22476:
URL: https://github.com/apache/datafusion/pull/22476#discussion_r3293185790
##########
datafusion/optimizer/tests/optimizer_integration.rs:
##########
@@ -570,47 +567,19 @@ fn recursive_cte_with_aliased_self_reference() ->
Result<()> {
format!("{plan}"),
@r"
SubqueryAlias: nodes
- RecursiveQuery: is_distinct=false
- Projection: test.col_int32 AS id
- TableScan: test projection=[col_int32]
- Projection: CAST(CAST(child.id AS Int64) + Int64(1) AS Int32)
- SubqueryAlias: child
- Filter: nodes.id < Int32(3)
- TableScan: nodes projection=[id]
+ Projection: id
+ RecursiveQuery: is_distinct=false
+ Projection: test.col_int32 AS id, test.col_utf8 AS name
+ TableScan: test projection=[col_int32, col_utf8]
+ Projection: CAST(CAST(child.id AS Int64) + Int64(1) AS Int32),
child.name
+ SubqueryAlias: child
+ Filter: nodes.id < Int32(3)
+ TableScan: nodes projection=[id, name]
",
);
Ok(())
}
-#[test]
-fn recursive_cte_with_unused_columns() -> Result<()> {
Review Comment:
This test was very similar to the now named
`recursive_cte_outer_projection_pushdown`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]