0.01
No release in over a year
Apache Arrow DataFusion is an extensible query execution framework that uses Apache Arrow as its in-memory format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Red DataFusion

The Ruby bindings for Apache Arrow DataFusion. This uses DataFusion C API.

How to install

gem install red-datafusion

How to use

require "datafusion"

context = DataFusion::SessionContext.new
table = Arrow::Table.new(boolean: [true, nil, false],
                         integer: [1, 2, nil])
context.register("data", table)
data_frame = context.sql("SELECT * FROM data WHERE boolean = true")
puts(data_frame.to_table)
#      boolean    integer
# 0       true          1

Alternative

There is another Ruby bindings available at gem "arrow-datafusion". It focus on running query on Object Store and does not bundle with gem "red-arrow".