Skip to content

Commit

Permalink
pyo3 polars 0.5 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jul 20, 2023
1 parent 5150d4c commit 47ff05b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions example/extend_polars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.19", features = ["extension-module"] }
pyo3-polars = { version = "*", path = "../../pyo3-polars", features = ["lazy"] }
polars-core = { version = "0.30" }
polars-core = { version = "0.31.1" }
polars-lazy = "*"
polars = { version = "*", features = ["fmt"] }
polars = { version = "0.31.1", features = ["fmt"] }
rayon = "1.6"
14 changes: 7 additions & 7 deletions pyo3-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyo3-polars"
version = "0.4.1"
version = "0.5.0"
edition = "2021"
license = "MIT"
readme = "../README.md"
Expand All @@ -10,14 +10,14 @@ description = "PyO3 bindings to polars"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
polars = { version = "0.30.0", default_features = false }
polars-core = { version = "0.30.0", default_features = false }
polars-plan = { version = "0.30.0", default_features = false, optional = true }
polars-lazy = { version = "0.30.0", default_features = false, optional = true }
polars = { version = "0.31.1", default_features = false }
polars-core = { version = "0.31.1", default_features = false }
polars-plan = { version = "0.31.1", default_features = false, optional = true }
polars-lazy = { version = "0.31.1", default_features = false, optional = true }
pyo3 = "0.19.0"
thiserror = "1"
arrow2 = "0.17"
ciborium = { version = "0.2.0", optional = true }
arrow2 = "0.17.2"
ciborium = { version = "0.2.1", optional = true }

[features]
lazy = ["polars/serde-lazy", "polars-plan", "polars-lazy", "ciborium"]
Expand Down
4 changes: 4 additions & 0 deletions pyo3-polars/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ impl std::convert::From<PyPolarsErr> for PyErr {
PolarsError::StructFieldNotFound(err) => {
StructFieldNotFound::new_err(err.to_string())
}
PolarsError::StringCacheMismatch(err) => {
StringCacheMismatchError::new_err(err.to_string())
}
},
Arrow(err) => ArrowErrorException::new_err(format!("{:?}", err)),
_ => default(),
Expand Down Expand Up @@ -66,3 +69,4 @@ create_exception!(exceptions, ArrowErrorException, PyException);
create_exception!(exceptions, ShapeError, PyException);
create_exception!(exceptions, SchemaError, PyException);
create_exception!(exceptions, DuplicateError, PyException);
create_exception!(exceptions, StringCacheMismatchError, PyException);

0 comments on commit 47ff05b

Please sign in to comment.