red-arrow 21.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: b620f874573eeead85030595b472e0ce9f5bce948542d71f4cdeb43b141df200
4
- data.tar.gz: e834c6aac27c445c8cfc9884c8e34a98e2b5573aa44f5c8ce77aaf9ee281d934
3
+ metadata.gz: ae7465055f36320c48284183aecfd96123b7f8bf38624fb666f733eb2a74e69f
4
+ data.tar.gz: 88f7d6849a9ff3f4ca016130ac6599cd1e9a14178127fe1cf6c240ae067d3d30
5
5
  SHA512:
6
- metadata.gz: c1ec15499eae3c223b768e579aa41507d4581d40a730c0ca40be8c063a9a774b7452fb87e9cbc22f5c84dd967203f822b3cfdcec2a38f3fb4f24f1a92eac965f
7
- data.tar.gz: 8e6c7214e09052fcd37fb01c5cf167ca1f42befcd5be2b08ecbc1388fabedcbbd8b775f178e6ce6c28d505412d0995f37b990c6cd7c7dc2dbb8704d9bbcf9096
6
+ metadata.gz: 4e584fc27a4a955e94ba4316248078a3bac66711403cccda44823d236cc65f6d9c70fd8c9495ec3da85e7b29ee68bcb4e51fbbb675d950232cbb73ed64addbbd
7
+ data.tar.gz: 9b807446da0b8a5536a20bf5d662036e6d0fb4f1e5594c31527dc59b06dada081196229d4171cc481e3138bf361f5e09ed62655b9267c96b1dac935c99295054
@@ -0,0 +1,32 @@
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
+ module Arrow
19
+ class ArrayStatistics
20
+ if method_defined?(:distinct_count_exact)
21
+ alias_method :distinct_count_raw, :distinct_count
22
+ def distinct_count
23
+ return nil unless has_distinct_count?
24
+ if distinct_count_exact?
25
+ distinct_count_exact
26
+ else
27
+ distinct_count_approximate
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -28,6 +28,7 @@ require_relative "aggregate-node-options"
28
28
  require_relative "aggregation"
29
29
  require_relative "array"
30
30
  require_relative "array-builder"
31
+ require_relative "array-statistics"
31
32
  require_relative "bigdecimal-extension"
32
33
  require_relative "binary-dictionary-array-builder"
33
34
  require_relative "buffer"
data/lib/arrow/ruby.rb CHANGED
@@ -15,7 +15,6 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
- require "extpp/setup"
19
18
  require "gio2"
20
19
 
21
20
  require_relative "loader"
@@ -30,7 +30,7 @@ module Arrow
30
30
  end
31
31
 
32
32
  def convert_to_arrow_value(value)
33
- if value.respond_to?(:to_time) and not value.is_a?(Time)
33
+ if value.respond_to?(:to_time) and not value.is_a?(::Time)
34
34
  value = value.to_time
35
35
  end
36
36
 
data/lib/arrow/version.rb CHANGED
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
 
18
18
  module Arrow
19
- VERSION = "21.0.0"
19
+ VERSION = "22.0.0"
20
20
 
21
21
  module Version
22
22
  numbers, TAG = VERSION.split("-")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.0.0
4
+ version: 22.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache Arrow Developers
@@ -109,6 +109,7 @@ files:
109
109
  - lib/arrow/aggregation.rb
110
110
  - lib/arrow/array-builder.rb
111
111
  - lib/arrow/array-computable.rb
112
+ - lib/arrow/array-statistics.rb
112
113
  - lib/arrow/array.rb
113
114
  - lib/arrow/bigdecimal-extension.rb
114
115
  - lib/arrow/binary-dictionary-array-builder.rb
@@ -245,7 +246,7 @@ homepage: https://arrow.apache.org/
245
246
  licenses:
246
247
  - Apache-2.0
247
248
  metadata:
248
- msys2_mingw_dependencies: arrow>=21.0.0
249
+ msys2_mingw_dependencies: arrow>=22.0.0
249
250
  rdoc_options: []
250
251
  require_paths:
251
252
  - lib
@@ -260,21 +261,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
261
  - !ruby/object:Gem::Version
261
262
  version: '0'
262
263
  requirements:
263
- - 'system: arrow-glib>=21.0.0: amazon_linux: arrow-glib-devel'
264
- - 'system: arrow-glib>=21.0.0: amazon_linux: https://packages.apache.org/artifactory/arrow/amazon-linux/%{version}/apache-arrow-release-latest.rpm'
265
- - 'system: arrow-glib>=21.0.0: amazon_linux: arrow-glib-devel'
266
- - 'system: arrow-glib>=21.0.0: centos: arrow-glib-devel'
267
- - 'system: arrow-glib>=21.0.0: centos: https://packages.apache.org/artifactory/arrow/centos/%{major_version}-stream/apache-arrow-release-latest.rpm'
268
- - 'system: arrow-glib>=21.0.0: centos: arrow-glib-devel'
269
- - 'system: arrow-glib>=21.0.0: conda: arrow-c-glib'
270
- - 'system: arrow-glib>=21.0.0: debian: libarrow-glib-dev'
271
- - 'system: arrow-glib>=21.0.0: debian: https://packages.apache.org/artifactory/arrow/%{distribution}/apache-arrow-apt-source-latest-%{code_name}.deb'
272
- - 'system: arrow-glib>=21.0.0: debian: libarrow-glib-dev'
273
- - 'system: arrow-glib>=21.0.0: fedora: libarrow-glib-devel'
274
- - 'system: arrow-glib>=21.0.0: rhel: arrow-glib-devel'
275
- - 'system: arrow-glib>=21.0.0: rhel: https://packages.apache.org/artifactory/arrow/almalinux/%{major_version}/apache-arrow-release-latest.rpm'
276
- - 'system: arrow-glib>=21.0.0: rhel: arrow-glib-devel'
277
- rubygems_version: 3.7.1
264
+ - 'system: arrow-glib>=22.0.0: amazon_linux: arrow-glib-devel'
265
+ - 'system: arrow-glib>=22.0.0: amazon_linux: https://packages.apache.org/artifactory/arrow/amazon-linux/%{version}/apache-arrow-release-latest.rpm'
266
+ - 'system: arrow-glib>=22.0.0: amazon_linux: arrow-glib-devel'
267
+ - 'system: arrow-glib>=22.0.0: centos: arrow-glib-devel'
268
+ - 'system: arrow-glib>=22.0.0: centos: https://packages.apache.org/artifactory/arrow/centos/%{major_version}-stream/apache-arrow-release-latest.rpm'
269
+ - 'system: arrow-glib>=22.0.0: centos: arrow-glib-devel'
270
+ - 'system: arrow-glib>=22.0.0: conda: arrow-c-glib'
271
+ - 'system: arrow-glib>=22.0.0: debian: libarrow-glib-dev'
272
+ - 'system: arrow-glib>=22.0.0: debian: https://packages.apache.org/artifactory/arrow/%{distribution}/apache-arrow-apt-source-latest-%{code_name}.deb'
273
+ - 'system: arrow-glib>=22.0.0: debian: libarrow-glib-dev'
274
+ - 'system: arrow-glib>=22.0.0: fedora: libarrow-glib-devel'
275
+ - 'system: arrow-glib>=22.0.0: rhel: arrow-glib-devel'
276
+ - 'system: arrow-glib>=22.0.0: rhel: https://packages.apache.org/artifactory/arrow/almalinux/%{major_version}/apache-arrow-release-latest.rpm'
277
+ - 'system: arrow-glib>=22.0.0: rhel: arrow-glib-devel'
278
+ rubygems_version: 4.0.0.dev
278
279
  specification_version: 4
279
280
  summary: Red Arrow is the Ruby bindings of Apache Arrow
280
281
  test_files: []