diff --git a/polars/polars-ops/src/pivot/positioning.rs b/polars/polars-ops/src/pivot/positioning.rs index a4688dfa93fd..f6d90c0c640d 100644 --- a/polars/polars-ops/src/pivot/positioning.rs +++ b/polars/polars-ops/src/pivot/positioning.rs @@ -29,7 +29,7 @@ pub(super) fn position_aggregates( for ((row_idx, col_idx), val) in row_locations .iter() .zip(col_locations) - .zip(value_agg_phys.iter()) + .zip(value_agg_phys.phys_iter()) { // Safety: // in bounds @@ -162,7 +162,7 @@ pub(super) fn compute_col_idx( let mut col_to_idx = PlHashMap::with_capacity(HASHMAP_INIT_SIZE); let mut idx = 0 as IdxSize; column_agg_physical - .iter() + .phys_iter() .map(|v| { let idx = *col_to_idx.entry(v).or_insert_with(|| { let old_idx = idx; @@ -248,7 +248,7 @@ pub(super) fn compute_row_idx( PlIndexMap::with_capacity_and_hasher(HASHMAP_INIT_SIZE, Default::default()); let mut idx = 0 as IdxSize; let row_locations = index_agg_physical - .iter() + .phys_iter() .map(|v| { let idx = *row_to_idx.entry(v).or_insert_with(|| { let old_idx = idx; @@ -282,7 +282,7 @@ pub(super) fn compute_row_idx( .collect::>(); let mut iters = index_agg_physical .iter() - .map(|s| s.iter()) + .map(|s| s.phys_iter()) .collect::>(); let mut row_to_idx = PlIndexMap::with_capacity_and_hasher(HASHMAP_INIT_SIZE, Default::default()); diff --git a/py-polars/Cargo.lock b/py-polars/Cargo.lock index a9a11fcf45ca..4771554bdc38 100644 --- a/py-polars/Cargo.lock +++ b/py-polars/Cargo.lock @@ -456,6 +456,18 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +[[package]] +name = "enum_dispatch" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eb359f1476bf611266ac1f5355bc14aeca37b299d0ebccc038ee7058891c9cb" +dependencies = [ + "once_cell", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "ethnum" version = "1.3.0" @@ -1375,6 +1387,7 @@ dependencies = [ name = "polars-pipe" version = "0.24.3" dependencies = [ + "enum_dispatch", "hashbrown", "num", "polars-core",