Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parquet-cli: update test, use tarball, add linux #178768

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading