progval commented on code in PR #5860:
URL: https://github.com/apache/arrow-rs/pull/5860#discussion_r1638797931


##########
parquet/Cargo.toml:
##########
@@ -68,6 +68,9 @@ twox-hash = { version = "1.6", default-features = false }
 paste = { version = "1.0" }
 half = { version = "2.1", default-features = false, features = ["num-traits"] }
 
+dsi-progress-logger = { version = "0.2.4", optional = true }

Review Comment:
   Done. It now looks like this:
   
   ```
   $ cargo run --release --features="cli sysinfo" --example write_parquet -- -h
   Writes sequences of integers, with a Bloom Filter, while logging timing and 
memory usage
   
   Usage: write_parquet [OPTIONS] <PATH>
   
   Arguments:
     <PATH>  Path to the file to write
   
   Options:
         --iterations <ITERATIONS>                        Number of batches to 
write [default: 1000]
         --batch <BATCH>                                  Number of rows in 
each batch [default: 1000000]
         --bloom-filter-position <BLOOM_FILTER_POSITION>  Where to write Bloom 
Filters [default: after-row-group] [possible values: end, after-row-group]
     -h, --help                                           Print help
     -V, --version                                        Print version
   
   
   $ cargo run --release --features="cli sysinfo" --example write_parquet -- 
/tmp/test.parquet
   2024-06-13 21:45:40 Writing 1000 batches of 1000000 rows. RSS = 1MB
   2024-06-13 21:45:50 Iteration 260/1000. RSS = 50MB
   2024-06-13 21:46:00 Iteration 518/1000. RSS = 50MB
   2024-06-13 21:46:10 Iteration 772/1000. RSS = 50MB
   2024-06-13 21:46:19 Done. RSS = 17MB
   
   $ cargo run --release --features="cli sysinfo" --example write_parquet -- 
/tmp/test.parquet --bloom-filter-position end
   2024-06-13 21:46:29 Writing 1000 batches of 1000000 rows. RSS = 1MB
   2024-06-13 21:46:39 Iteration 267/1000. RSS = 451MB
   2024-06-13 21:46:49 Iteration 533/1000. RSS = 791MB
   2024-06-13 21:46:59 Iteration 799/1000. RSS = 1151MB
   2024-06-13 21:47:07 Done. RSS = 1055MB
   ```



-- 
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]

Reply via email to