From b0d3dfdf398355bab30e90cfb9355a7b94be3dbd Mon Sep 17 00:00:00 2001 From: Jakub Filipek Date: Sat, 28 Sep 2024 00:30:13 -0700 Subject: [PATCH] Fix parsing of bytes. For now fixed to low endianness --- crates/polars-arrow/src/compute/cast/binary_to.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/polars-arrow/src/compute/cast/binary_to.rs b/crates/polars-arrow/src/compute/cast/binary_to.rs index e14a03040522..74dea9ba27bc 100644 --- a/crates/polars-arrow/src/compute/cast/binary_to.rs +++ b/crates/polars-arrow/src/compute/cast/binary_to.rs @@ -19,7 +19,7 @@ macro_rules! impl_parse { ($primitive_type:ident) => { impl Parse for $primitive_type { fn parse(val: &[u8]) -> Option { - atoi_simd::parse_skipped(val).ok() + Some(Self::from_le_bytes(val.try_into().ok()?)) } } };