Skip to content

Commit

Permalink
start on a lot of the column optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Sep 13, 2024
1 parent f5565ca commit 4302512
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 1,309 deletions.
51 changes: 0 additions & 51 deletions crates/polars-core/src/chunked_array/builder/binary_offset.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/polars-core/src/chunked_array/builder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod binary_offset;
mod boolean;
#[cfg(feature = "dtype-array")]
pub mod fixed_size_list;
Expand All @@ -11,7 +10,6 @@ use std::sync::Arc;

use arrow::array::*;
use arrow::bitmap::Bitmap;
pub use binary_offset::*;
pub use boolean::*;
#[cfg(feature = "dtype-array")]
pub(crate) use fixed_size_list::*;
Expand Down
10 changes: 10 additions & 0 deletions crates/polars-core/src/datatypes/any_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,16 @@ impl<'a> AnyValue<'a> {
None => AnyValue::Null,
}
}

pub fn idx(&self) -> IdxSize {
match self {
#[cfg(not(feature = "bigidx"))]
Self::UInt32(v) => *v,
#[cfg(feature = "bigidx")]
Self::UInt64(v) => *v,
_ => panic!("expected index type found {self:?}"),
}
}
}

impl From<AnyValue<'_>> for DataType {
Expand Down
Loading

0 comments on commit 4302512

Please sign in to comment.