Skip to content

Commit

Permalink
Correct example code for column (#5560) (#5561)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Gershkoff <[email protected]>
  • Loading branch information
zgershkoff and zgershkoff authored Mar 28, 2024
1 parent 9a5ea83 commit 51ea388
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parquet/src/column/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
//! let reader = SerializedFileReader::new(file).unwrap();
//! let metadata = reader.metadata();
//!
//! let mut values = vec![0; 8];
//! let mut def_levels = vec![0; 8];
//! let mut rep_levels = vec![0; 8];
//! let mut values = vec![];
//! let mut def_levels = vec![];
//! let mut rep_levels = vec![];
//!
//! for i in 0..metadata.num_row_groups() {
//! let row_group_reader = reader.get_row_group(i).unwrap();
Expand All @@ -112,9 +112,9 @@
//! }
//! }
//!
//! assert_eq!(values, vec![1, 2, 3, 0, 0, 0, 0, 0]);
//! assert_eq!(def_levels, vec![3, 3, 3, 2, 2, 0, 0, 0]);
//! assert_eq!(rep_levels, vec![0, 1, 0, 1, 1, 0, 0, 0]);
//! assert_eq!(values, vec![1, 2, 3]);
//! assert_eq!(def_levels, vec![3, 3, 3, 2, 2]);
//! assert_eq!(rep_levels, vec![0, 1, 0, 1, 1]);
//! ```
pub mod page;
Expand Down

0 comments on commit 51ea388

Please sign in to comment.