Since withClause has type WithClause and walk only handles Node type, the entire withClause is skipped. https://github.com/launchql/pgsql-parser/blob/7e4343a796a48a61b3272654c3a05af3b3f9514a/packages/traverse/src/17/runtime-schema.ts#L8514-L8519 https://github.com/launchql/pgsql-parser/blob/7e4343a796a48a61b3272654c3a05af3b3f9514a/packages/traverse/src/traverse.ts#L72-L83 Same issue applies to union larg and rarg. ### Expected behavior Walk should traverse with clause and union. ### Actual behavior Walk skips with clause and union.
Activity
pyramation commentedon Oct 4, 2025
thank you! Super happy to take a PR for this :)
Fix walk function to traverse WithClause and union larg/rarg nodes
Fix walk function to traverse WithClause and union larg/rarg nodes
pyramation commentedon Nov 23, 2025
#233
pyramation commentedon Nov 23, 2025
@yilinjuang pardon the delay, thanks for being patient :)