red-parquet 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ead84edca096ec5c2038c9b5702d9f354b58bd4818a9ccd3658dcb82c9d7c40b
4
- data.tar.gz: 7c94d6889171647d5f9bc3600a335e391d67c881e21de7f9ffbf450accf77bf3
3
+ metadata.gz: 7e7a0e77caa1fe87613e54a387c72e555d06478b31ca38107d9ca1ecd81ea1fa
4
+ data.tar.gz: 55d27eb2e5b91ba256b0c45d6e43388d7b03efa068c6f05ecea4e9dcb7bd8960
5
5
  SHA512:
6
- metadata.gz: f554d3bb6704ad11cc9fcb77359f7f5aa94f27e0f39a6b89ebc6576d188a1ba46d190b04eab98b649009a70f39611961fce5f43d426c4355219110f03f678ab6
7
- data.tar.gz: 791d805a3ff91d99f669429a2d4e42ffd79f475ecf091498c7a034c94e9a0cc84c13ea18218156da1ead0f7049e368dcb76985c50882559b7db463280e4da5a3
6
+ metadata.gz: 9e62147700c950515c4884c21c22c495eae377ca583e3e4cc848133c6e01baabdf69a3d241b313e0a11f1f9bcbccb5035af8174be8f7faa560b8796f8cde70fd
7
+ data.tar.gz: c9879e48d61a1e9fa3859788aef1b195b9a3f06f2db51328ecdd3668bcac5b21945f6ed9c3a6a7ce0fdaf57bd0334401fdbc73d32e00ee4669b249a848784800
@@ -42,5 +42,20 @@ module Parquet
42
42
  klass.extend(Arrow::BlockClosable)
43
43
  end
44
44
  end
45
+
46
+ def load_method_info(info, klass, method_name)
47
+ case klass.name
48
+ when "Parquet::BooleanStatistics"
49
+ case method_name
50
+ when "min?"
51
+ method_name = "min"
52
+ when "max?"
53
+ method_name = "max"
54
+ end
55
+ super(info, klass, method_name)
56
+ else
57
+ super
58
+ end
59
+ end
45
60
  end
46
61
  end
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
 
18
18
  module Parquet
19
- VERSION = "7.0.0"
19
+ VERSION = "8.0.0"
20
20
 
21
21
  module Version
22
22
  numbers, TAG = VERSION.split("-")
@@ -0,0 +1,38 @@
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 TestBooleanStatistics < Test::Unit::TestCase
19
+ def setup
20
+ file = Tempfile.open(["data", ".parquet"])
21
+ array = Arrow::BooleanArray.new([nil, false, true])
22
+ table = Arrow::Table.new("boolean" => array)
23
+ writer = Parquet::ArrowFileWriter.new(table.schema, file.path)
24
+ chunk_size = 1024
25
+ writer.write_table(table, chunk_size)
26
+ writer.close
27
+ reader = Parquet::ArrowFileReader.new(file.path)
28
+ @statistics = reader.metadata.get_row_group(0).get_column_chunk(0).statistics
29
+ end
30
+
31
+ def test_min
32
+ assert_equal(false, @statistics.min)
33
+ end
34
+
35
+ def test_max
36
+ assert_equal(true, @statistics.max)
37
+ end
38
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-parquet
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache Arrow Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-05 00:00:00.000000000 Z
11
+ date: 2022-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: red-arrow
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.0
19
+ version: 8.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 7.0.0
26
+ version: 8.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,7 @@ files:
90
90
  - test/helper.rb
91
91
  - test/run-test.rb
92
92
  - test/test-arrow-table.rb
93
+ - test/test-boolean-statistics.rb
93
94
  homepage: https://arrow.apache.org/
94
95
  licenses:
95
96
  - Apache-2.0
@@ -117,3 +118,4 @@ test_files:
117
118
  - test/helper.rb
118
119
  - test/run-test.rb
119
120
  - test/test-arrow-table.rb
121
+ - test/test-boolean-statistics.rb