You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RECURSIVE CTE no longer compiles correctly for INCREMENTAL insert #2083
I think the reason is not in a generated procedure, but in additional SELECT query wrapping your SELECT with recursive CTE.
To fix it, the most feasible way is to create an intermediate temporary table with results of the incremental query and generate the insert statement separately. I've created an internal bug to track it. Because this is not related to open-source, can you please file an issue in our Public Tracker?
As a workaround (somewhat), you can enable onSchemaChangevalue different from IGNORE. In this case we're already generating SQL with putting incremental results into a temporary table, so you can check if this works for your case (obviously if you're fine with enabling automatic incremental table changes).
Activity
kolina commentedon Feb 6, 2026
Can you show your config block? Do you use GCP Dataform?
bartekelm commentedon Feb 23, 2026
Yes, it's GCP DF.
kolina commentedon Mar 2, 2026
I think the reason is not in a generated procedure, but in additional
SELECTquery wrapping yourSELECTwith recursive CTE.To fix it, the most feasible way is to create an intermediate temporary table with results of the incremental query and generate the insert statement separately. I've created an internal bug to track it. Because this is not related to open-source, can you please file an issue in our Public Tracker?
As a workaround (somewhat), you can enable
onSchemaChangevalue different fromIGNORE. In this case we're already generating SQL with putting incremental results into a temporary table, so you can check if this works for your case (obviously if you're fine with enabling automatic incremental table changes).