collimarco commented on issue #34781:
URL: https://github.com/apache/arrow/issues/34781#issuecomment-1564506092

   @kou Thanks! It works!
   
   The only downside is that in my benchmark on a 100M log file I don't see any 
performance gains.
   
   Original Ruby program:
   
   ```
   require 'arrow'
   require 'parquet'
   
   table = Arrow::Table.load('sample.parquet', format: :parquet)
   puts table.slice { |slicer| slicer['status'] == 200 }
   ```
   
   Improved Ruby program:
   
   ```
   require 'arrow'
   require 'parquet'
   require 'arrow-dataset'
   
   file = URI('sample.parquet')
   table = Arrow::Table.load(file, filter: [:equal, :status, 200])
   puts table
   ```
   
   Measuring with the `time` command I get `~ 1.2s` for both versions.


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