Skip to content

jychen7/datafusion-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby bindings for DataFusion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 93.1%
  • CMake 6.9%