Skip to content

Commit

Permalink
Fix parsing of bytes. For now fixed to low endianness
Browse files Browse the repository at this point in the history
  • Loading branch information
balbok0 committed Sep 28, 2024
1 parent 901b243 commit b0d3dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-arrow/src/compute/cast/binary_to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ macro_rules! impl_parse {
($primitive_type:ident) => {
impl Parse for $primitive_type {
fn parse(val: &[u8]) -> Option<Self> {
atoi_simd::parse_skipped(val).ok()
Some(Self::from_le_bytes(val.try_into().ok()?))
}
}
};
Expand Down

0 comments on commit b0d3dfd

Please sign in to comment.