Skip to content

Commit

Permalink
Made num_values public (jorgecarleitao#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
b41sh authored and ritchie46 committed Apr 5, 2023
1 parent ea68a88 commit 9f9067a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/parquet/write/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use crate::types::days_ms;
use crate::types::i256;
use crate::types::NativeType;

pub use nested::write_rep_and_def;
pub use nested::{num_values, write_rep_and_def};
pub use pages::{to_leaves, to_nested, to_parquet_leaves};
use parquet2::schema::types::PrimitiveType as ParquetPrimitiveType;
pub use parquet2::{
Expand Down
1 change: 1 addition & 0 deletions src/io/parquet/write/nested/rep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn iter<'a>(nested: &'a [Nested]) -> Vec<Box<dyn DebugIter + 'a>> {
.collect()
}

/// return number values of the nested
pub fn num_values(nested: &[Nested]) -> usize {
let pr = match nested.last().unwrap() {
Nested::Primitive(_, _, len) => *len,
Expand Down

0 comments on commit 9f9067a

Please sign in to comment.