FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve displayed error by using `DataFusionError`'s `Display` trait by abey79 · Pull Request #1370 · apache/datafusion-python · GitHub

Improve displayed error by using DataFusionError's Display trait - #1370

Merged
timsaucer merged 2 commits into
apache:mainfrom
rerun-io:antoine/better-dfn-error
Feb 4, 2026
Merged

Improve displayed error by using DataFusionError's Display trait#1370
timsaucer merged 2 commits into
apache:mainfrom
rerun-io:antoine/better-dfn-error

Conversation

abey79 commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #1369

Rationale for this change

The error displayed by the snippet in #1369 now is:

Exception: DataFusion error: Schema error: No field named does_not_exist. Valid fields are users.id, users.name, users.age.

It previously was:

Exception: DataFusion error: SchemaError(FieldNotFound { field: Column { relation: None, name: "does_not_exist" }, valid_fields: [Column { relation: Some(Bare { table: "users" }), name: "id" }, Column { relation: Some(Bare { table: "users" }), name: "name" }, Column { relation: Some(Bare { table: "users" }), name: "age" }] }, Some(""))

What changes are included in this PR?

This uses the Display trait instead of the Debug trait of DataFusionError when displaying errors.

Are there any user-facing changes?

Yes. Error display.

abey79 force-pushed the antoine/better-dfn-error branch from 367dce9 to 97f5f46 Compare February 4, 2026 15:37
timsaucer merged commit adec2dc into apache:main Feb 4, 2026
17 checks passed
abey79 deleted the antoine/better-dfn-error branch February 5, 2026 07:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve display of schema error

2 participants


Back | FazBrowse Home | New Git URL