Skip to content

Commit

Permalink
ARROW-11305 Skip first argument (which is the program name) in parque…
Browse files Browse the repository at this point in the history
…t-rowcount binary

Closes apache#9249 from jhorstmann/ARROW-11305-parquet-rowcount-argument-confusion

Authored-by: Jörn Horstmann <[email protected]>
Signed-off-by: Jorge C. Leitao <[email protected]>
  • Loading branch information
jhorstmann authored and GeorgeAp committed Jun 7, 2021
1 parent 038051e commit bc03219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/parquet/src/bin/parquet-rowcount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ fn main() {
process::exit(1);
}

for filename in args {
let path = Path::new(&filename);
let file = File::open(&path).unwrap();
for filename in &args[1..] {
let path = Path::new(filename);
let file = File::open(path).unwrap();
let parquet_reader = SerializedFileReader::new(file).unwrap();
let row_group_metadata = parquet_reader.metadata().row_groups();
let mut total_num_rows = 0;
Expand Down

0 comments on commit bc03219

Please sign in to comment.