pola-rs / polars-xdt

Polars plugin offering eXtra stuff for DateTimes
https://marcogorelli.github.io/polars-xdt-docs/
MIT License
179 stars 8 forks source link

segfault if checking `roll` argument within Rust code rather than in Python #34

Closed MarcoGorelli closed 9 months ago

MarcoGorelli commented 9 months ago

xref #33

if the

        if roll not in (valid_roll_strategies := get_args(RollStrategy)):
            allowed = ", ".join(repr(m) for m in valid_roll_strategies)
            raise ValueError(
                f"`roll` strategy must be one of {{{allowed}}}, got {roll!r}"
            )

check is removed, pytest throws a segfault when running on all tests

MarcoGorelli commented 9 months ago

resolved now, the next polars release will fix this