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

feat: Implement is_between in Rust #11945

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

petrosbar
Copy link
Contributor

Fixes #11285

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature rust Related to Rust Polars labels Oct 23, 2023
crates/polars-ops/src/series/ops/is_between.rs Outdated Show resolved Hide resolved
crates/polars-core/Cargo.toml Outdated Show resolved Hide resolved
@petrosbar petrosbar marked this pull request as ready for review October 23, 2023 08:27
@petrosbar petrosbar marked this pull request as draft October 24, 2023 13:26
@petrosbar petrosbar marked this pull request as ready for review October 24, 2023 16:58
@petrosbar petrosbar requested a review from orlp October 24, 2023 19:38
@petrosbar petrosbar force-pushed the feature/is_between_rust branch 2 times, most recently from 1dc9598 to 2f34637 Compare November 1, 2023 06:32
@petrosbar
Copy link
Contributor Author

@ritchie46 @stinodego, would like to kindly ask to get some attention to this PR, so that I can address any comments or suggestions, if the PR is considered of any value, or else close it so that it doesn't "pollute" the repo.

Copy link
Member

@stinodego stinodego left a comment

Choose a reason for hiding this comment

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

Apologies for leaving this around so long. It looks great and can be merged!


#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum ClosedInterval {
Copy link
Member

Choose a reason for hiding this comment

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

Too bad we can't reuse the existing ClosedWindow enum as it's in the polars-time crate which is not available here. But I guess it's fine this way.

@stinodego stinodego changed the title feat(rust): implement is_between on the rust side feat: Implement is_between on the Rust side Jan 11, 2024
@stinodego stinodego changed the title feat: Implement is_between on the Rust side feat: Implement is_between in Rust Jan 11, 2024
@github-actions github-actions bot added the python Related to Python Polars label Jan 11, 2024
@stinodego stinodego merged commit b27fe94 into pola-rs:main Jan 11, 2024
28 checks passed
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 2024
Co-authored-by: Stijn de Gooijer <stijndegooijer@gmail.com>
@petrosbar petrosbar deleted the feature/is_between_rust branch February 19, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Implement Expr.is_between on the Rust side
4 participants