Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6774

[Rust] Reading parquet file is slow

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.15.0
    • Fix Version/s: None
    • Component/s: Rust
    • Labels:
      None

      Description

      Using the example at https://github.com/apache/arrow/tree/master/rust/parquet is slow.

      The snippet 

      let reader = SerializedFileReader::new(file).unwrap();
      let mut iter = reader.get_row_iter(None).unwrap();
      let start = Instant::now();
      while let Some(record) = iter.next() {}
      let duration = start.elapsed();
      println!("{:?}", duration);
      

      Runs for 17sec for a ~160MB parquet file.

      If there is a more effective way to load a parquet file, it would be nice to add it to the readme.

      P.S.: My goal is to construct an ndarray from it, I'd be happy for any tips.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alippai Adam Lippai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: