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

fix: Ensure height is maintained in SQL SELECT 1 FROM #20241

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Dec 10, 2024

Fixes #20058
Fixes #18404

@nameexhaustion nameexhaustion changed the title fix: Ensure height is maintained in SQL SELECT 1 FROM fix: Ensure height is maintained in SQL SELECT 1 FROM Dec 10, 2024
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Dec 10, 2024
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.64%. Comparing base (2c76494) to head (6aa4b6a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20241      +/-   ##
==========================================
- Coverage   79.65%   79.64%   -0.01%     
==========================================
  Files        1565     1565              
  Lines      218202   218208       +6     
  Branches     2475     2475              
==========================================
- Hits       173804   173798       -6     
- Misses      43831    43843      +12     
  Partials      567      567              

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

@nameexhaustion nameexhaustion marked this pull request as ready for review December 10, 2024 06:40
@nameexhaustion nameexhaustion marked this pull request as draft December 10, 2024 07:55
input.iter().all(|e| e.is_scalar(expr_arena))
} else {
options.flags.contains(FunctionFlags::RETURNS_SCALAR)
false
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

re-ordered this condition to fix an issue where pl.col("x").null_count() > 0 was not being identified as scalar

@nameexhaustion nameexhaustion self-assigned this Dec 10, 2024
@nameexhaustion nameexhaustion marked this pull request as ready for review December 10, 2024 08:12
@ritchie46 ritchie46 merged commit 296b4d4 into pola-rs:main Dec 10, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
2 participants