Skip to content
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

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

Open
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? 🤔

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attach Diagnostic to "duplicate table name" error
1 participant