@@ -538,15 +538,14 @@ fn recursive_cte_projection_pushdown() -> Result<()> {
538538 // columns from the base table and recursive table, eliminating unused columns
539539 assert_snapshot ! (
540540 format!( "{plan}" ) ,
541- @r"
542- SubqueryAlias: nodes
543- RecursiveQuery: is_distinct=false
544- Projection: test.col_int32 AS id
545- TableScan: test projection=[col_int32]
546- Projection: CAST(CAST(nodes.id AS Int64) + Int64(1) AS Int32) AS id
547- Filter: nodes.id < Int32(3)
548- TableScan: nodes projection=[id]
549- "
541+ @r#"SubqueryAlias: nodes
542+ RecursiveQuery: is_distinct=false
543+ Projection: test.col_int32 AS id
544+ TableScan: test projection=[col_int32]
545+ Projection: CAST(CAST(nodes.id AS Int64) + Int64(1) AS Int32)
546+ Filter: nodes.id < Int32(3)
547+ TableScan: nodes projection=[id]
548+ "#
550549 ) ;
551550 Ok ( ( ) )
552551}
@@ -562,16 +561,14 @@ fn recursive_cte_with_aliased_self_reference() -> Result<()> {
562561
563562 assert_snapshot ! (
564563 format!( "{plan}" ) ,
565- @r"
566- SubqueryAlias: nodes
567- RecursiveQuery: is_distinct=false
568- Projection: test.col_int32 AS id
569- TableScan: test projection=[col_int32]
570- Projection: CAST(CAST(child.id AS Int64) + Int64(1) AS Int32) AS id
571- SubqueryAlias: child
572- Filter: nodes.id < Int32(3)
573- TableScan: nodes projection=[id]
574- " ,
564+ @r#"SubqueryAlias: nodes
565+ RecursiveQuery: is_distinct=false
566+ Projection: test.col_int32 AS id
567+ TableScan: test projection=[col_int32]
568+ Projection: CAST(CAST(child.id AS Int64) + Int64(1) AS Int32)
569+ SubqueryAlias: child
570+ Filter: nodes.id < Int32(3)
571+ TableScan: nodes projection=[id]"# ,
575572 ) ;
576573 Ok ( ( ) )
577574}
@@ -624,16 +621,15 @@ fn recursive_cte_projection_pushdown_baseline() -> Result<()> {
624621 // and only the needed column is selected from the recursive table
625622 assert_snapshot ! (
626623 format!( "{plan}" ) ,
627- @r"
628- SubqueryAlias: countdown
629- RecursiveQuery: is_distinct=false
630- Projection: test.col_int32 AS n
631- Filter: test.col_int32 = Int32(5)
632- TableScan: test projection=[col_int32]
633- Projection: CAST(CAST(countdown.n AS Int64) - Int64(1) AS Int32) AS n
634- Filter: countdown.n > Int32(1)
635- TableScan: countdown projection=[n]
636- "
624+ @r#"SubqueryAlias: countdown
625+ RecursiveQuery: is_distinct=false
626+ Projection: test.col_int32 AS n
627+ Filter: test.col_int32 = Int32(5)
628+ TableScan: test projection=[col_int32]
629+ Projection: CAST(CAST(countdown.n AS Int64) - Int64(1) AS Int32)
630+ Filter: countdown.n > Int32(1)
631+ TableScan: countdown projection=[n]
632+ "#
637633 ) ;
638634 Ok ( ( ) )
639635}
0 commit comments