Skip to content

[wip] attach diagnostic to duplicate table name error #14767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zjregee
Copy link
Member

@zjregee zjregee commented Feb 19, 2025

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added sql SQL Planner common Related to common crate labels Feb 19, 2025
.map_err(|err| {
let diagnostic = Diagnostic::new_error(
format!("duplicate qualified field name '{}'", field.name()),
None,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @eliaperantoni, I have some doubts in the implementation process and hope to get some help.

When constructing Diagnostic error, how should I get the location where the error occurred, that is, how to construct Span here? 🤔

@alamb alamb marked this pull request as draft February 25, 2025 16:30
Copy link

Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale PR has not had any activity for some time label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate sql SQL Planner Stale PR has not had any activity for some time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attach Diagnostic to "duplicate table name" error
1 participant