Skip to content

Commit

Permalink
move into polars-compute
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Jul 30, 2024
1 parent cab0b51 commit 90ff20e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion crates/polars-arrow/src/legacy/kernels/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::iter::Enumerate;
use crate::array::BooleanArray;
use crate::bitmap::utils::BitChunks;
pub mod atan2;
pub mod binary;
pub mod concatenate;
pub mod ewm;
#[cfg(feature = "compute_take")]
Expand Down
4 changes: 2 additions & 2 deletions crates/polars-compute/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
use arrow::types::NativeType;

pub mod arithmetic;
pub mod arity;
pub mod comparisons;
pub mod filter;
pub mod float_sum;
pub mod if_then_else;
pub mod min_max;
pub mod size;
pub mod unique;

pub mod arity;

// Trait to enable the scalar blanket implementation.
pub trait NotSimdPrimitive: NativeType {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::array::{Array, ArrayRef, BinaryViewArray, UInt32Array};
use crate::buffer::Buffer;
use crate::datatypes::ArrowDataType;
use arrow::array::{Array, ArrayRef, BinaryViewArray, UInt32Array};
use arrow::buffer::Buffer;
use arrow::datatypes::ArrowDataType;

pub fn binary_size_bytes(array: &BinaryViewArray) -> ArrayRef {
let values: Buffer<_> = array.len_iter().collect();
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-ops/src/chunked_array/binary/namespace.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#[cfg(feature = "binary_encoding")]
use std::borrow::Cow;

use arrow::legacy::kernels::binary::*;
#[cfg(feature = "binary_encoding")]
use base64::engine::general_purpose;
#[cfg(feature = "binary_encoding")]
use base64::Engine as _;
use memchr::memmem::find;
use polars_compute::size::binary_size_bytes;
use polars_core::prelude::arity::{broadcast_binary_elementwise_values, unary_elementwise_values};

use super::*;
Expand Down

0 comments on commit 90ff20e

Please sign in to comment.