You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have encountered an issue while building a project using the latest version available on cargo, 0.9.0, with the polars feature enabled. The error is as follows:
error[E0308]: mismatched types
40 | .infer_schema_len(Some(5))
| ---- ^ expected `NonZero<usize>`, found integer
| |
| arguments to this enum variant are incorrect
|
= note: expected struct `NonZero<usize>`
The issue appears to be in line 40 of the file polars.rs. My build environment was the rust:slim-bookworm docker image on ARM64 using rust version 1.79.0-aarch64-unknown-linux-gnu.
A potential solution I suggest is as follows, starting from line 39:
let df = JsonReader::new(reader).with_json_format(JsonFormat::Json).infer_schema_len(Some(NonZeroUsize::new(5).unwrap())).finish()?;
The modification above resolves the issue on my end.
The text was updated successfully, but these errors were encountered:
Hi, I have encountered an issue while building a project using the latest version available on cargo,
0.9.0
, with thepolars
feature enabled. The error is as follows:The issue appears to be in line 40 of the file
polars.rs
. My build environment was therust:slim-bookworm
docker image on ARM64 using rust version1.79.0-aarch64-unknown-linux-gnu
.A potential solution I suggest is as follows, starting from line 39:
The modification above resolves the issue on my end.
The text was updated successfully, but these errors were encountered: