Skip to content

Commit

Permalink
Merge pull request #178768 from branchvincent/parquet-cli
Browse files Browse the repository at this point in the history
parquet-cli: update test, use tarball, add linux
  • Loading branch information
BrewTestBot committed Jul 29, 2024
2 parents 1ddc608 + 3e39fa1 commit bae6669
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions Formula/p/parquet-cli.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
class ParquetCli < Formula
desc "Apache Parquet command-line tools and utilities"
homepage "https://parquet.apache.org/"
url "https://github.com/apache/parquet-mr.git",
tag: "apache-parquet-1.14.1",
revision: "97ede968377400d1d79e3196636ba3de392196ba"
url "https://github.com/apache/parquet-java/archive/refs/tags/apache-parquet-1.14.1.tar.gz"
sha256 "e187ec57c60e1057f4c91a38fd9fb10a636b56b0dac5b2d25649e85901a61434"
license "Apache-2.0"
revision 1
head "https://github.com/apache/parquet-mr.git", branch: "master"

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, all: "6e33538fcca9b9bd16232ce073ee5626302003c7a8786a293ab76987d22308b3"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, arm64_ventura: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, arm64_monterey: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, sonoma: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, ventura: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, monterey: "03f56b713e81de3fa9d7e4a3f221f0f1b750d1f11fc58d5d4598b92cef8fcbe2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2f326610a01ab876bd7c14384ea07d3765ac83f77dcd034f76640ec3277ba11c"
end

depends_on "maven" => :build

# parquet-cli has problems running on Linux, for more information:
# https://github.com/Homebrew/homebrew-core/pull/94318#issuecomment-1049229342
depends_on :macos

depends_on "openjdk"

def install
Expand All @@ -34,6 +34,7 @@ def install
end

(pkgshare/"test").install "parquet-avro/src/test/avro/stringBehavior.avsc"
(pkgshare/"test").install "parquet-avro/src/test/resources/strings-2.parquet"
end

test do
Expand All @@ -48,5 +49,17 @@ def install
"type" : "string"
}, {
EOS

output = shell_output("#{bin}/parquet schema #{pkgshare}/test/strings-2.parquet")
assert_match <<~EOS, output
{
"type" : "record",
"name" : "mystring",
"fields" : [ {
"name" : "text",
"type" : "string"
} ]
}
EOS
end
end

0 comments on commit bae6669

Please sign in to comment.