XiangpengHao commented on code in PR #9353:
URL: https://github.com/apache/arrow-rs/pull/9353#discussion_r2765089194
##########
parquet/src/column/writer/mod.rs:
##########
@@ -2502,6 +2503,27 @@ mod tests {
);
}
+ #[test]
+ fn test_column_writer_column_data_page_size_limit() {
+ let props = Arc::new(
+ WriterProperties::builder()
+ .set_writer_version(WriterVersion::PARQUET_1_0)
+ .set_dictionary_enabled(false)
+ .set_data_page_size_limit(1000)
+ .set_column_data_page_size_limit(ColumnPath::from("col"), 10)
+ .set_write_batch_size(3)
+ .build(),
+ );
+ let data = &[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
+
+ let col_values =
+ write_and_collect_page_values(ColumnPath::from("col"),
Arc::clone(&props), data);
+ let other_values =
write_and_collect_page_values(ColumnPath::from("other"), props, data);
+
+ assert_eq!(col_values, vec![3, 3, 3, 1]);
+ assert_eq!(other_values, vec![10]);
Review Comment:
This is the observed end-to-end behavior, only the specified column changed,
other columns unaffected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]