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(rust): check dtypes of single-column 'by' parameter in asof-join #10284

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

mcrumiller
Copy link
Contributor

Resolves #10278

@github-actions github-actions bot added fix Bug fix rust Related to Rust Polars labels Aug 3, 2023
@@ -633,7 +633,12 @@ fn dispatch_join<T: PolarsNumericType>(
tolerance: Option<AnyValue<'static>>,
) -> PolarsResult<Vec<Option<IdxSize>>> {
let out = if left_by.width() == 1 {
match left_by_s.dtype() {
let left_dtype = left_by_s.dtype();
Copy link
Contributor Author

@mcrumiller mcrumiller Aug 3, 2023

Choose a reason for hiding this comment

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

Looks like a dtype check was missed when the by parameter is a single column.

Copy link
Member

Choose a reason for hiding this comment

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

Right, good catch. Thanks!

@ritchie46 ritchie46 merged commit 5a7905c into pola-rs:main Aug 4, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

join_asof panics with different types of "by" column depending on their order
2 participants