Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Made num_values public #1431

Merged
merged 1 commit into from
Mar 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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