Skip to content

Commit

Permalink
datafusion 5.0.0 (new formula)
Browse files Browse the repository at this point in the history
datafusion 5.0 (new formula)

add Apache Arrow Datafusion engine's CLI i.e. datafusion-cli to brew

Closes #88184.

Signed-off-by: Dawid Dziurla <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
Jiayu Liu authored and BrewTestBot committed Oct 28, 2021
1 parent a4eb367 commit 2ceef7d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Formula/datafusion.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Datafusion < Formula
desc "Apache Arrow DataFusion and Ballista query engines"
homepage "https://arrow.apache.org/datafusion"
url "https://github.com/apache/arrow-datafusion/archive/refs/tags/5.0.0.tar.gz"
sha256 "7ba05bba8b7ea3b1f7ff6b3d1b1a3413a81540c57342ef331d51a07ad4a7b7a8"
license "Apache-2.0"
head "https://github.com/apache/arrow-datafusion.git", branch: "master"

depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args(path: "datafusion-cli")
end

test do
(testpath/"datafusion_test.sql").write("select 1+2 as n;")
assert_equal "[{\"n\":3}]", shell_output("#{bin}/datafusion-cli -q --format json -f datafusion_test.sql").strip
end
end

0 comments on commit 2ceef7d

Please sign in to comment.