Skip to content

fix: typo for the builder error type - #24052

Open
JosephLenton wants to merge 2 commits into
apache:mainfrom
JosephLenton:fix-plan-builder-data-type-error-typo
Open

fix: typo for the builder error type#24052
JosephLenton wants to merge 2 commits into
apache:mainfrom
JosephLenton:fix-plan-builder-data-type-error-typo

Conversation

@JosephLenton

@JosephLenton JosephLenton commented Aug 2, 2026

Copy link
Copy Markdown

Which issue does this PR close?

There is no ticket for this (I can open one if it is really needed). This is a very small nitpick QoL improvement, by changing the wording for an error.

The typo fixes the phrase ... can't cast to got ..., by adding a comma and making the rest a bit clearer.

Rationale for this change

  • The error doesn't read as natural english with ... can't cast to got ....
  • I've added more clarity on what got and for are, by changing to data of type and field of type.

What changes are included in this PR?

  • Rewording an error message.

Are these changes tested?

  • I added a test to confirm the error message looks right.

Are there any user-facing changes?

  • A user facing error message has changed.
  • No documentation changes are needed.
  • No API breaking changes are in this PR.

@github-actions github-actions Bot added the logical-expr Logical plan and expressions label Aug 2, 2026
@JosephLenton
JosephLenton force-pushed the fix-plan-builder-data-type-error-typo branch from 24b04be to 5a0c76f Compare August 2, 2026 11:01
@codecov-commenter

codecov-commenter commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.88%. Comparing base (62650ef) to head (bd7234c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24052   +/-   ##
=======================================
  Coverage   80.87%   80.88%           
=======================================
  Files        1101     1101           
  Lines      375765   375776   +11     
  Branches   375765   375776   +11     
=======================================
+ Hits       303915   303933   +18     
+ Misses      53747    53738    -9     
- Partials    18103    18105    +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JosephLenton
JosephLenton force-pushed the fix-plan-builder-data-type-error-typo branch from 445d9cb to bd7234c Compare August 3, 2026 15:53
@JosephLenton
JosephLenton marked this pull request as ready for review August 3, 2026 15:54

@nuno-faria nuno-faria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @JosephLenton, I leave a small suggestion below.

{
return exec_err!(
"type mismatch and can't cast to got {} and {}",
"Type mismatch and can't cast, received data of type {} for field of type {}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The original part sounds a bit odd to me. What do you think about "Types don't match and no valid cast exists, ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants