Skip to content

Commit

Permalink
Update arrow/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
tustvold and alamb authored May 15, 2024
1 parent 4261a58 commit 3dfdb3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arrow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@
//! # use arrow_array::types::Int32Type;
//! # use arrow_select::filter::filter;
//! let array = Int32Array::from_iter(0..100);
//! let predicate = gt(&array, &Int32Array::new_scalar(60)).unwrap();
//! // Create a 32-bit integer scalar (single) value:
//! let scalar = Int32Array::new_scalar(60);
//! // find all rows in the array that are greater than 60
//! let predicate = gt(&array, &scalar).unwrap();
//! // copy all matching rows into a new array
//! let filtered = filter(&array, &predicate).unwrap();
//!
//! let expected = Int32Array::from_iter(61..100);
Expand Down

0 comments on commit 3dfdb3a

Please sign in to comment.