Skip to content

v58.0.1

Latest

Choose a tag to compare

@JosiahParry JosiahParry released this 26 Mar 16:01
· 20 commits to main since this release

58.0.1

New features

  • Add polars-51 feature flag for interop with polars-core 0.51
  • Add polars-53 as an explicit feature flag (equivalent to the existing polars flag)
  • polars is now an alias for polars-53
  • Enabling polars-51 together with polars-53 or polars produces a compile error

58.0.0

Breaking changes

  • FromArrowRobj, ToArrowRobj, and IntoArrowRobj traits moved from arrow_extendr::from / arrow_extendr::to to the crate root (arrow_extendr). Update imports accordingly.
  • FromArrowRobj::from_arrow_robj now returns std::result::Result<Self, anyhow::Error> instead of Result<Self, ArrowError>. This provides a uniform error type across both the arrow and polars feature implementations.
  • arrow-rs is now an optional dependency enabled via the arrow feature flag (on by default). Users who previously depended on arrow types being always available should add features = ["arrow"] to their dependency or rely on the default.
  • ErrArrowRobj type alias removed. Use anyhow::Error directly.

New features

  • Add polars feature flag enabling interop with polars-core (which re-exports polars-arrow)
  • Implements FromArrowRobj for polars_arrow::ffi::ArrowArrayStreamReader — import a nanoarrow_array_stream from R into a polars-arrow stream reader
  • Implements IntoArrowRobj for polars_arrow::ffi::ArrowArrayStream — export any polars-arrow stream to R as a nanoarrow_array_stream
  • Implements IntoArrowRobj for polars_core::frame::DataFrame — export a Polars DataFrame to R as a nanoarrow_array_stream, preserving chunking
  • Implements FromArrowRobj for polars_core::frame::DataFrame — import a nanoarrow_array_stream from R into a Polars DataFrame