Skip to content

Attach diagnostic information for duplicate table name error#20720

Open
buraksenn wants to merge 4 commits intoapache:mainfrom
buraksenn:attach-diagnostic-for-duplicate-cte
Open

Attach diagnostic information for duplicate table name error#20720
buraksenn wants to merge 4 commits intoapache:mainfrom
buraksenn:attach-diagnostic-for-duplicate-cte

Conversation

@buraksenn
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

This is part of #14429 epic to add diagnostic to more errors.

What changes are included in this PR?

This PR adds optional span with the CTE and uses those spans to best effort attach diagnostics

Are these changes tested?

  • I've run existing SQL tests to make sure not break any functionality
  • Added new tests for diagnostics

Are there any user-facing changes?

Yes users can call diagnostic methods to get detailed information about errors

@github-actions github-actions bot added the sql SQL Planner label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attach Diagnostic to "duplicate table name" error

1 participant