Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into warn-user-on-fork-take-2
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Oct 15, 2024
2 parents b0acf42 + d89fdcd commit cedb140
Show file tree
Hide file tree
Showing 105 changed files with 3,687 additions and 2,052 deletions.
29 changes: 15 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ memmap = { package = "memmap2", version = "0.7" }
multiversion = "0.7"
ndarray = { version = "0.15", default-features = false }
num-traits = "0.2"
numpy = "0.22"
object_store = { version = "0.10", default-features = false }
once_cell = "1"
parking_lot = "0.12"
percent-encoding = "2.3"
pin-project-lite = "0.2"
pyo3 = "0.21"
pyo3 = "0.22"
rand = "0.8"
rand_distr = "0.4"
raw-cpuid = "11"
Expand Down
11 changes: 3 additions & 8 deletions crates/polars-arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ zstd = { workspace = true, optional = true }
# to write to parquet as a stream
futures = { workspace = true, optional = true }

# to read IPC as a stream
async-stream = { version = "0.3.2", optional = true }

# avro support
avro-schema = { workspace = true, optional = true }

Expand All @@ -75,6 +72,8 @@ arrow-array = { workspace = true, optional = true }
arrow-buffer = { workspace = true, optional = true }
arrow-data = { workspace = true, optional = true }
arrow-schema = { workspace = true, optional = true }
async-stream = { version = "0.3", optional = true }
tokio = { workspace = true, optional = true, features = ["io-util"] }

[dev-dependencies]
criterion = "0.5"
Expand Down Expand Up @@ -105,8 +104,6 @@ full = [
"arrow_rs",
"io_ipc",
"io_flight",
"io_ipc_write_async",
"io_ipc_read_async",
"io_ipc_compression",
"io_avro",
"io_avro_compression",
Expand All @@ -119,10 +116,8 @@ full = [
]
arrow_rs = ["arrow-buffer", "arrow-schema", "arrow-data", "arrow-array"]
io_ipc = ["arrow-format", "polars-error/arrow-format"]
io_ipc_write_async = ["io_ipc", "futures"]
io_ipc_read_async = ["io_ipc", "futures", "async-stream"]
io_ipc_compression = ["lz4", "zstd", "io_ipc"]
io_flight = ["io_ipc", "arrow-format/flight-data"]
io_flight = ["io_ipc", "arrow-format/flight-data", "async-stream", "futures", "tokio"]

io_avro = ["avro-schema", "polars-error/avro-schema"]
io_avro_compression = [
Expand Down
1 change: 1 addition & 0 deletions crates/polars-arrow/src/bitmap/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ impl Bitmap {
/// Unsound iff `i >= self.len()`.
#[inline]
pub unsafe fn get_bit_unchecked(&self, i: usize) -> bool {
debug_assert!(i < self.len());
get_bit_unchecked(&self.storage, self.offset + i)
}

Expand Down
1 change: 1 addition & 0 deletions crates/polars-arrow/src/bitmap/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ impl MutableBitmap {
/// Caller must ensure that `index < self.len()`
#[inline]
pub unsafe fn set_unchecked(&mut self, index: usize, value: bool) {
debug_assert!(index < self.len());
let byte = self.buffer.get_unchecked_mut(index / 8);
*byte = set_bit_in_byte(*byte, index % 8, value);
}
Expand Down
1 change: 1 addition & 0 deletions crates/polars-arrow/src/ffi/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl ArrowArray {
ArrowDataType::BinaryView | ArrowDataType::Utf8View
);

#[allow(unused_mut)]
let (offset, mut buffers, children, dictionary) =
offset_buffers_children_dictionary(array.as_ref());

Expand Down
Loading

0 comments on commit cedb140

Please sign in to comment.