Skip to content

Commit

Permalink
Increase minimum polars-rs version to 0.41 (#49)
Browse files Browse the repository at this point in the history
* Increase minimum polars-rs version to 0.41

* Clippy polars.rs

---------

Co-authored-by: Tobias Singhania <[email protected]>
Co-authored-by: andrusha <[email protected]>
  • Loading branch information
3 people authored Dec 24, 2024
1 parent f8bb116 commit 5e8daff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions snowflake-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ url = "2"
uuid = { version = "1", features = ["v4"] }

# polars-support
polars-core = { version = ">=0.32", optional = true }
polars-io = { version = ">=0.32", features = [
polars-core = { version = ">=0.41", optional = true }
polars-io = { version = ">=0.41", features = [
"json",
"ipc_streaming",
], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions snowflake-api/src/polars.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::convert::TryFrom;
use std::num::NonZero;
use std::num::NonZeroUsize;

use bytes::{Buf, Bytes};
use polars_core::frame::DataFrame;
Expand Down Expand Up @@ -38,7 +38,7 @@ fn dataframe_from_json(json_result: &JsonResult) -> Result<DataFrame, PolarsCast
let reader = std::io::Cursor::new(json_string.as_bytes());
let df = JsonReader::new(reader)
.with_json_format(JsonFormat::Json)
.infer_schema_len(Some(NonZero::new(5).unwrap()))
.infer_schema_len(NonZeroUsize::new(5))
.finish()?;
Ok(df)
}
Expand Down

0 comments on commit 5e8daff

Please sign in to comment.