Skip to content

Commit

Permalink
chore: Update example for API change
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 16, 2024
1 parent 14b19cc commit f58348b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parquet/examples/write_parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use parquet::arrow::ArrowWriter as ParquetWriter;
use parquet::basic::Encoding;
use parquet::errors::Result;
use parquet::file::properties::{BloomFilterPosition, WriterProperties};
use sysinfo::{MemoryRefreshKind, ProcessRefreshKind, ProcessesToUpdate, RefreshKind, System};
use sysinfo::{ProcessRefreshKind, ProcessesToUpdate, RefreshKind, System};

#[derive(ValueEnum, Clone)]
enum BloomFilterPositionArg {
Expand Down Expand Up @@ -97,8 +97,7 @@ fn main() -> Result<()> {
let file = File::create(args.path).unwrap();
let mut writer = ParquetWriter::try_new(file, schema.clone(), Some(properties))?;

let mut system =
System::new_with_specifics(RefreshKind::new().with_memory(MemoryRefreshKind::everything()));
let mut system = System::new_with_specifics(RefreshKind::everything());
eprintln!(
"{} Writing {} batches of {} rows. RSS = {}",
now(),
Expand Down

0 comments on commit f58348b

Please sign in to comment.