Skip to content

Simplify float & int casting#327

Merged
sunng87 merged 1 commit intodatafusion-contrib:feature/arrow-pg-parameter-enhancefrom
mjgarton:feature/arrow-pg-parameter-enhance_mg
Apr 13, 2026
Merged

Simplify float & int casting#327
sunng87 merged 1 commit intodatafusion-contrib:feature/arrow-pg-parameter-enhancefrom
mjgarton:feature/arrow-pg-parameter-enhance_mg

Conversation

@mjgarton
Copy link
Copy Markdown
Collaborator

Instead of reusing checked_int_cast also for the float code paths and requiring a source parameter, split the int & float paths completely, making the callsites simpler, and reducing the overall code length.

Instead of reusing `checked_int_cast` also for the float code paths and
requiring a `source` parameter, split the int & float paths completely,
making the callsites simpler, and reducing the overall code length.
Copy link
Copy Markdown
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

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

@mjgarton Thank you!

@sunng87 sunng87 merged commit 40c37e7 into datafusion-contrib:feature/arrow-pg-parameter-enhance Apr 13, 2026
7 checks passed
sunng87 added a commit that referenced this pull request Apr 13, 2026
* feat: improve query parameter parsing for datafusion

* feat: add range check and tests

* chore: fmt

* Simplify float & int casting (#327)

Instead of reusing `checked_int_cast` also for the float code paths and
requiring a `source` parameter, split the int & float paths completely,
making the callsites simpler, and reducing the overall code length.

---------

Co-authored-by: Martin Garton <mjgarton@users.noreply.github.com>
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.

2 participants