red-parquet 20.0.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 323528552f7d6c6d62560393f70153537fba11ae13fffd71140ded9248ae463d
4
- data.tar.gz: b8c62bae1ec3c11c5ce56e786bb5dd5d58dca0e9524aa96f76acaae746078ccf
3
+ metadata.gz: 2085af5a4bd9a53cf212330b33f12f475c541b9b63c8a400708dbff7db2a1860
4
+ data.tar.gz: dd556666a402ce0e223e9a4339a0b869a6188ab157e1ff811af37208ea936d64
5
5
  SHA512:
6
- metadata.gz: 986d5fb55935047c0f66d5f17cf3b155e6a7bc3334fa9211862e6eb6a509103b625f859d9d764e35f84d8f620e8b9f8c22969eed7676b8912d317553fe94536c
7
- data.tar.gz: b0fdb4a2e6cf276741c568c9af52e6edb8fa65fe5b368a7792f7de5842928484d09a9bcd58e7b19953272de3dd7364463081e6a2fcc7b090230097b0e989d8fb
6
+ metadata.gz: 1484b3395a78d68679369dd0ed506d1194060618a13d7a93e66925c439248879ea6bd85e6b8f3f11181d98509b129bf423f151264628279fa9110ed0557ceb98
7
+ data.tar.gz: 49093e6e40a172211db5d2558aee7fa71607b30d56c758dde7c1154d3b05d6cb2e94de61b55c666fb6f067b5259ecc7be5e44214fcd8d7f03433403f21b996ad
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
 
18
18
  module Parquet
19
- VERSION = "20.0.0"
19
+ VERSION = "22.0.0"
20
20
 
21
21
  module Version
22
22
  numbers, TAG = VERSION.split("-")
@@ -0,0 +1,39 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ class TestArrayStatistics < Test::Unit::TestCase
19
+ def setup
20
+ data = Tempfile.create(["red-parquet", ".parquet"]) do |file|
21
+ table = Arrow::Table.new(int64: [nil, -(2 ** 32), 2 ** 32])
22
+ table.save(file)
23
+ File.read(file, mode: "rb")
24
+ end
25
+ loaded_table = Arrow::Table.load(Arrow::Buffer.new(data),
26
+ format: :parquet)
27
+ @statistics = loaded_table[:int64].data.chunks[0].statistics
28
+ end
29
+
30
+ def test_distinct_count
31
+ assert do
32
+ not @statistics.has_distinct_count?
33
+ end
34
+ assert do
35
+ not @statistics.distinct_count_exact?
36
+ end
37
+ assert_nil(@statistics.distinct_count)
38
+ end
39
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-parquet
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.0.0
4
+ version: 22.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache Arrow Developers
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 20.0.0
18
+ version: 22.0.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 20.0.0
25
+ version: 22.0.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,7 @@ files:
90
90
  - red-parquet.gemspec
91
91
  - test/helper.rb
92
92
  - test/run-test.rb
93
+ - test/test-array-statistics.rb
93
94
  - test/test-arrow-file-reader.rb
94
95
  - test/test-arrow-file-writer.rb
95
96
  - test/test-arrow-table.rb
@@ -112,12 +113,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  - !ruby/object:Gem::Version
113
114
  version: '0'
114
115
  requirements: []
115
- rubygems_version: 3.7.0.dev
116
+ rubygems_version: 4.0.0.dev
116
117
  specification_version: 4
117
118
  summary: Red Parquet is the Ruby bindings of Apache Parquet
118
119
  test_files:
119
120
  - test/helper.rb
120
121
  - test/run-test.rb
122
+ - test/test-array-statistics.rb
121
123
  - test/test-arrow-file-reader.rb
122
124
  - test/test-arrow-file-writer.rb
123
125
  - test/test-arrow-table.rb