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

series equality panics on series of empty structs #6358

Closed
2 tasks done
universalmind303 opened this issue Jan 21, 2023 · 1 comment
Closed
2 tasks done

series equality panics on series of empty structs #6358

universalmind303 opened this issue Jan 21, 2023 · 1 comment
Labels
A-dtype-struct Area: struct data type bug Something isn't working rust Related to Rust Polars

Comments

@universalmind303
Copy link
Collaborator

Polars version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Polars.

Issue description

comparing a series of empty structs panics.

Reproducible example

use polars::prelude::*;
fn main() {
    let dtype = DataType::Struct(vec![]);
    let empties = vec![AnyValue::StructOwned(Box::new((vec![], vec![]))); 3];
    let s = Series::from_any_values_and_dtype("", &empties, &dtype).unwrap();
    let s2 = s.clone();
    assert!(s.series_equal_missing(&s2));
}

Expected behavior

does not panic.

Installed versions

polars = {git = "https://github.com/pola-rs/polars.git", branch = "master", features = ["dtype-full"]}
@universalmind303 universalmind303 added bug Something isn't working rust Related to Rust Polars labels Jan 21, 2023
@stinodego stinodego added needs triage Awaiting prioritization by a maintainer A-dtype-struct Area: struct data type labels Jan 13, 2024
@stinodego
Copy link
Member

Empty structs are not supported yet.

Closing in favor of #9216

@stinodego stinodego closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
@stinodego stinodego removed the needs triage Awaiting prioritization by a maintainer label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dtype-struct Area: struct data type bug Something isn't working rust Related to Rust Polars
Projects
None yet
Development

No branches or pull requests

2 participants