Skip to content

feat: Use true division for the / operator in Polars SQL#27391

Open
Kevin-Patyk wants to merge 7 commits intopola-rs:mainfrom
Kevin-Patyk:refactor/use_true_division_sql
Open

feat: Use true division for the / operator in Polars SQL#27391
Kevin-Patyk wants to merge 7 commits intopola-rs:mainfrom
Kevin-Patyk:refactor/use_true_division_sql

Conversation

@Kevin-Patyk
Copy link
Copy Markdown
Contributor

Resolves #25396.

I saw you self-assigned @alexander-beedie, but figured I would give it a stab since it's been awhile. I hope that's okay 😃!

🤖 Claude Sonnet 4.6 for navigating and explaining existing code.

@Kevin-Patyk Kevin-Patyk changed the title feat: Use true division for / operator in SQL feat: Use true division for the / operator in SQL Apr 23, 2026
@Kevin-Patyk Kevin-Patyk changed the title feat: Use true division for the / operator in SQL feat: Use true division for the / operator in Polars SQL Apr 23, 2026
@github-actions github-actions Bot added A-sql Area: Polars SQL functionality enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Apr 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.45%. Comparing base (1156024) to head (b7ccec2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27391      +/-   ##
==========================================
- Coverage   81.14%   80.45%   -0.69%     
==========================================
  Files        1834     1834              
  Lines      254891   254894       +3     
  Branches     3177     3177              
==========================================
- Hits       206823   205076    -1747     
- Misses      47246    48996    +1750     
  Partials      822      822              

☔ View full report in Codecov by Sentry.
📢 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.

@Kevin-Patyk
Copy link
Copy Markdown
Contributor Author

As a random thought, @alexander-beedie do you think maybe we should add a warning that this behaviour changed for the end user?

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

Labels

A-sql Area: Polars SQL functionality enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure SQL division returns a float when required

1 participant