red-arrow 4.0.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/arrow/arrow.cpp +3 -0
- data/ext/arrow/memory-view.cpp +311 -0
- data/ext/arrow/memory-view.hpp +26 -0
- data/lib/arrow/array.rb +12 -0
- data/lib/arrow/buffer.rb +10 -6
- data/lib/arrow/constructor-arguments-gc-guardable.rb +25 -0
- data/lib/arrow/datum.rb +98 -0
- data/lib/arrow/equal-options.rb +38 -0
- data/lib/arrow/loader.rb +31 -0
- data/lib/arrow/scalar.rb +32 -0
- data/lib/arrow/table.rb +2 -2
- data/lib/arrow/version.rb +1 -1
- data/red-arrow.gemspec +2 -1
- data/test/helper.rb +1 -0
- data/test/test-array.rb +34 -0
- data/test/test-boolean-scalar.rb +26 -0
- data/test/test-float-scalar.rb +46 -0
- data/test/test-function.rb +176 -0
- data/test/test-memory-view.rb +434 -0
- metadata +101 -73
@@ -0,0 +1,434 @@
|
|
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 MemoryViewTest < Test::Unit::TestCase
|
19
|
+
def setup
|
20
|
+
unless Fiddle.const_defined?(:MemoryView)
|
21
|
+
omit("Fiddle::MemoryView is needed")
|
22
|
+
end
|
23
|
+
unless Fiddle::MemoryView.respond_to?(:export)
|
24
|
+
omit("Fiddle::MemoryView.export is needed")
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def little_endian?
|
29
|
+
[1].pack("s") == [1].pack("s<")
|
30
|
+
end
|
31
|
+
|
32
|
+
test("BooleanArray") do
|
33
|
+
array = Arrow::BooleanArray.new([true] * 9)
|
34
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
35
|
+
if little_endian?
|
36
|
+
template = "b"
|
37
|
+
else
|
38
|
+
template = "B"
|
39
|
+
end
|
40
|
+
assert_equal([
|
41
|
+
"#{template}8",
|
42
|
+
1,
|
43
|
+
2,
|
44
|
+
[(("1" * 9) + ("0" * 7))].pack("#{template}*"),
|
45
|
+
],
|
46
|
+
[
|
47
|
+
memory_view.format,
|
48
|
+
memory_view.item_size,
|
49
|
+
memory_view.byte_size,
|
50
|
+
memory_view.to_s,
|
51
|
+
])
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
test("Int8Array") do
|
56
|
+
values = [-(2 ** 7), 0, (2 ** 7) - 1]
|
57
|
+
array = Arrow::Int8Array.new(values)
|
58
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
59
|
+
assert_equal([
|
60
|
+
"c",
|
61
|
+
1,
|
62
|
+
values.size,
|
63
|
+
values.pack("c*"),
|
64
|
+
],
|
65
|
+
[
|
66
|
+
memory_view.format,
|
67
|
+
memory_view.item_size,
|
68
|
+
memory_view.byte_size,
|
69
|
+
memory_view.to_s,
|
70
|
+
])
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
test("Int16Array") do
|
75
|
+
values = [-(2 ** 15), 0, (2 ** 15) - 1]
|
76
|
+
array = Arrow::Int16Array.new(values)
|
77
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
78
|
+
assert_equal([
|
79
|
+
"s",
|
80
|
+
2,
|
81
|
+
2 * values.size,
|
82
|
+
values.pack("s*"),
|
83
|
+
],
|
84
|
+
[
|
85
|
+
memory_view.format,
|
86
|
+
memory_view.item_size,
|
87
|
+
memory_view.byte_size,
|
88
|
+
memory_view.to_s,
|
89
|
+
])
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
test("Int32Array") do
|
94
|
+
values = [-(2 ** 31), 0, (2 ** 31) - 1]
|
95
|
+
array = Arrow::Int32Array.new(values)
|
96
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
97
|
+
assert_equal([
|
98
|
+
"l",
|
99
|
+
4,
|
100
|
+
4 * values.size,
|
101
|
+
values.pack("l*"),
|
102
|
+
],
|
103
|
+
[
|
104
|
+
memory_view.format,
|
105
|
+
memory_view.item_size,
|
106
|
+
memory_view.byte_size,
|
107
|
+
memory_view.to_s,
|
108
|
+
])
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
test("Int64Array") do
|
113
|
+
values = [-(2 ** 63), 0, (2 ** 63) - 1]
|
114
|
+
array = Arrow::Int64Array.new(values)
|
115
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
116
|
+
assert_equal([
|
117
|
+
"q",
|
118
|
+
8,
|
119
|
+
8 * values.size,
|
120
|
+
values.pack("q*"),
|
121
|
+
],
|
122
|
+
[
|
123
|
+
memory_view.format,
|
124
|
+
memory_view.item_size,
|
125
|
+
memory_view.byte_size,
|
126
|
+
memory_view.to_s,
|
127
|
+
])
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
test("UInt8Array") do
|
132
|
+
values = [0, (2 ** 8) - 1]
|
133
|
+
array = Arrow::UInt8Array.new(values)
|
134
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
135
|
+
assert_equal([
|
136
|
+
"C",
|
137
|
+
1,
|
138
|
+
values.size,
|
139
|
+
values.pack("C*"),
|
140
|
+
],
|
141
|
+
[
|
142
|
+
memory_view.format,
|
143
|
+
memory_view.item_size,
|
144
|
+
memory_view.byte_size,
|
145
|
+
memory_view.to_s,
|
146
|
+
])
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
test("UInt16Array") do
|
151
|
+
values = [0, (2 ** 16) - 1]
|
152
|
+
array = Arrow::UInt16Array.new(values)
|
153
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
154
|
+
assert_equal([
|
155
|
+
"S",
|
156
|
+
2,
|
157
|
+
2 * values.size,
|
158
|
+
values.pack("S*"),
|
159
|
+
],
|
160
|
+
[
|
161
|
+
memory_view.format,
|
162
|
+
memory_view.item_size,
|
163
|
+
memory_view.byte_size,
|
164
|
+
memory_view.to_s,
|
165
|
+
])
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
test("UInt32Array") do
|
170
|
+
values = [0, (2 ** 32) - 1]
|
171
|
+
array = Arrow::UInt32Array.new(values)
|
172
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
173
|
+
assert_equal([
|
174
|
+
"L",
|
175
|
+
4,
|
176
|
+
4 * values.size,
|
177
|
+
values.pack("L*"),
|
178
|
+
],
|
179
|
+
[
|
180
|
+
memory_view.format,
|
181
|
+
memory_view.item_size,
|
182
|
+
memory_view.byte_size,
|
183
|
+
memory_view.to_s,
|
184
|
+
])
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
test("UInt64Array") do
|
189
|
+
values = [(2 ** 64) - 1]
|
190
|
+
array = Arrow::UInt64Array.new(values)
|
191
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
192
|
+
assert_equal([
|
193
|
+
"Q",
|
194
|
+
8,
|
195
|
+
8 * values.size,
|
196
|
+
values.pack("Q*"),
|
197
|
+
],
|
198
|
+
[
|
199
|
+
memory_view.format,
|
200
|
+
memory_view.item_size,
|
201
|
+
memory_view.byte_size,
|
202
|
+
memory_view.to_s,
|
203
|
+
])
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
test("FloatArray") do
|
208
|
+
values = [-1.1, 0.0, 1.1]
|
209
|
+
array = Arrow::FloatArray.new(values)
|
210
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
211
|
+
assert_equal([
|
212
|
+
"f",
|
213
|
+
4,
|
214
|
+
4 * values.size,
|
215
|
+
values.pack("f*"),
|
216
|
+
],
|
217
|
+
[
|
218
|
+
memory_view.format,
|
219
|
+
memory_view.item_size,
|
220
|
+
memory_view.byte_size,
|
221
|
+
memory_view.to_s,
|
222
|
+
])
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
test("DoubleArray") do
|
227
|
+
values = [-1.1, 0.0, 1.1]
|
228
|
+
array = Arrow::DoubleArray.new(values)
|
229
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
230
|
+
assert_equal([
|
231
|
+
"d",
|
232
|
+
8,
|
233
|
+
8 * values.size,
|
234
|
+
values.pack("d*"),
|
235
|
+
],
|
236
|
+
[
|
237
|
+
memory_view.format,
|
238
|
+
memory_view.item_size,
|
239
|
+
memory_view.byte_size,
|
240
|
+
memory_view.to_s,
|
241
|
+
])
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
test("FixedSizeBinaryArray") do
|
246
|
+
values = ["\x01\x02", "\x03\x04", "\x05\x06"]
|
247
|
+
data_type = Arrow::FixedSizeBinaryDataType.new(2)
|
248
|
+
array = Arrow::FixedSizeBinaryArray.new(data_type, values)
|
249
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
250
|
+
assert_equal([
|
251
|
+
"C2",
|
252
|
+
2,
|
253
|
+
2 * values.size,
|
254
|
+
values.join("").b,
|
255
|
+
],
|
256
|
+
[
|
257
|
+
memory_view.format,
|
258
|
+
memory_view.item_size,
|
259
|
+
memory_view.byte_size,
|
260
|
+
memory_view.to_s,
|
261
|
+
])
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
test("Date32Array") do
|
266
|
+
n_days_since_epoch = 17406 # 2017-08-28
|
267
|
+
values = [n_days_since_epoch]
|
268
|
+
array = Arrow::Date32Array.new(values)
|
269
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
270
|
+
assert_equal([
|
271
|
+
"l",
|
272
|
+
4,
|
273
|
+
4 * values.size,
|
274
|
+
values.pack("l*"),
|
275
|
+
],
|
276
|
+
[
|
277
|
+
memory_view.format,
|
278
|
+
memory_view.item_size,
|
279
|
+
memory_view.byte_size,
|
280
|
+
memory_view.to_s,
|
281
|
+
])
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
test("Date64Array") do
|
286
|
+
n_msecs_since_epoch = 1503878400000 # 2017-08-28T00:00:00Z
|
287
|
+
values = [n_msecs_since_epoch]
|
288
|
+
array = Arrow::Date64Array.new(values)
|
289
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
290
|
+
assert_equal([
|
291
|
+
"q",
|
292
|
+
8,
|
293
|
+
8 * values.size,
|
294
|
+
values.pack("q*"),
|
295
|
+
],
|
296
|
+
[
|
297
|
+
memory_view.format,
|
298
|
+
memory_view.item_size,
|
299
|
+
memory_view.byte_size,
|
300
|
+
memory_view.to_s,
|
301
|
+
])
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
test("Time32Array") do
|
306
|
+
values = [1, 2, 3]
|
307
|
+
array = Arrow::Time32Array.new(:milli, values)
|
308
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
309
|
+
assert_equal([
|
310
|
+
"l",
|
311
|
+
4,
|
312
|
+
4 * values.size,
|
313
|
+
values.pack("l*"),
|
314
|
+
],
|
315
|
+
[
|
316
|
+
memory_view.format,
|
317
|
+
memory_view.item_size,
|
318
|
+
memory_view.byte_size,
|
319
|
+
memory_view.to_s,
|
320
|
+
])
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
test("Time64Array") do
|
325
|
+
values = [1, 2, 3]
|
326
|
+
array = Arrow::Time64Array.new(:nano, values)
|
327
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
328
|
+
assert_equal([
|
329
|
+
"q",
|
330
|
+
8,
|
331
|
+
8 * values.size,
|
332
|
+
values.pack("q*"),
|
333
|
+
],
|
334
|
+
[
|
335
|
+
memory_view.format,
|
336
|
+
memory_view.item_size,
|
337
|
+
memory_view.byte_size,
|
338
|
+
memory_view.to_s,
|
339
|
+
])
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
test("TimestampArray") do
|
344
|
+
values = [1, 2, 3]
|
345
|
+
array = Arrow::TimestampArray.new(:micro, values)
|
346
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
347
|
+
assert_equal([
|
348
|
+
"q",
|
349
|
+
8,
|
350
|
+
8 * values.size,
|
351
|
+
values.pack("q*"),
|
352
|
+
],
|
353
|
+
[
|
354
|
+
memory_view.format,
|
355
|
+
memory_view.item_size,
|
356
|
+
memory_view.byte_size,
|
357
|
+
memory_view.to_s,
|
358
|
+
])
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
test("Decimal128Array") do
|
363
|
+
values = [
|
364
|
+
Arrow::Decimal128.new("10.1"),
|
365
|
+
Arrow::Decimal128.new("11.1"),
|
366
|
+
Arrow::Decimal128.new("10.2"),
|
367
|
+
]
|
368
|
+
data_type = Arrow::Decimal128DataType.new(3, 1)
|
369
|
+
array = Arrow::Decimal128Array.new(data_type, values)
|
370
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
371
|
+
assert_equal([
|
372
|
+
"q2",
|
373
|
+
16,
|
374
|
+
16 * values.size,
|
375
|
+
values.collect {|value| value.to_bytes.to_s}.join(""),
|
376
|
+
],
|
377
|
+
[
|
378
|
+
memory_view.format,
|
379
|
+
memory_view.item_size,
|
380
|
+
memory_view.byte_size,
|
381
|
+
memory_view.to_s,
|
382
|
+
])
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
test("Decimal256Array") do
|
387
|
+
values = [
|
388
|
+
Arrow::Decimal256.new("10.1"),
|
389
|
+
Arrow::Decimal256.new("11.1"),
|
390
|
+
Arrow::Decimal256.new("10.2"),
|
391
|
+
]
|
392
|
+
data_type = Arrow::Decimal256DataType.new(3, 1)
|
393
|
+
array = Arrow::Decimal256Array.new(data_type, values)
|
394
|
+
Fiddle::MemoryView.export(array) do |memory_view|
|
395
|
+
assert_equal([
|
396
|
+
"q4",
|
397
|
+
32,
|
398
|
+
32 * values.size,
|
399
|
+
values.collect {|value| value.to_bytes.to_s}.join(""),
|
400
|
+
],
|
401
|
+
[
|
402
|
+
memory_view.format,
|
403
|
+
memory_view.item_size,
|
404
|
+
memory_view.byte_size,
|
405
|
+
memory_view.to_s,
|
406
|
+
])
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
test("Buffer") do
|
411
|
+
values = [0, nil, nil] * 3
|
412
|
+
array = Arrow::Int8Array.new(values)
|
413
|
+
buffer = array.null_bitmap
|
414
|
+
Fiddle::MemoryView.export(buffer) do |memory_view|
|
415
|
+
if little_endian?
|
416
|
+
template = "b"
|
417
|
+
else
|
418
|
+
template = "B"
|
419
|
+
end
|
420
|
+
assert_equal([
|
421
|
+
"#{template}8",
|
422
|
+
1,
|
423
|
+
2,
|
424
|
+
["100" * 3].pack("#{template}*"),
|
425
|
+
],
|
426
|
+
[
|
427
|
+
memory_view.format,
|
428
|
+
memory_view.item_size,
|
429
|
+
memory_view.byte_size,
|
430
|
+
memory_view.to_s,
|
431
|
+
])
|
432
|
+
end
|
433
|
+
end
|
434
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: red-arrow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Arrow Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.4.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.4.5
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: native-package-installer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: fiddle
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.0.9
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.0.9
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rake
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,6 +211,8 @@ files:
|
|
197
211
|
- ext/arrow/converters.cpp
|
198
212
|
- ext/arrow/converters.hpp
|
199
213
|
- ext/arrow/extconf.rb
|
214
|
+
- ext/arrow/memory-view.cpp
|
215
|
+
- ext/arrow/memory-view.hpp
|
200
216
|
- ext/arrow/raw-records.cpp
|
201
217
|
- ext/arrow/red-arrow.hpp
|
202
218
|
- ext/arrow/values.cpp
|
@@ -211,6 +227,7 @@ files:
|
|
211
227
|
- lib/arrow/column-containable.rb
|
212
228
|
- lib/arrow/column.rb
|
213
229
|
- lib/arrow/compression-type.rb
|
230
|
+
- lib/arrow/constructor-arguments-gc-guardable.rb
|
214
231
|
- lib/arrow/csv-loader.rb
|
215
232
|
- lib/arrow/csv-read-options.rb
|
216
233
|
- lib/arrow/data-type.rb
|
@@ -218,6 +235,7 @@ files:
|
|
218
235
|
- lib/arrow/date32-array.rb
|
219
236
|
- lib/arrow/date64-array-builder.rb
|
220
237
|
- lib/arrow/date64-array.rb
|
238
|
+
- lib/arrow/datum.rb
|
221
239
|
- lib/arrow/decimal128-array-builder.rb
|
222
240
|
- lib/arrow/decimal128-array.rb
|
223
241
|
- lib/arrow/decimal128-data-type.rb
|
@@ -229,6 +247,7 @@ files:
|
|
229
247
|
- lib/arrow/dense-union-data-type.rb
|
230
248
|
- lib/arrow/dictionary-array.rb
|
231
249
|
- lib/arrow/dictionary-data-type.rb
|
250
|
+
- lib/arrow/equal-options.rb
|
232
251
|
- lib/arrow/field-containable.rb
|
233
252
|
- lib/arrow/field.rb
|
234
253
|
- lib/arrow/file-output-stream.rb
|
@@ -252,6 +271,7 @@ files:
|
|
252
271
|
- lib/arrow/record-containable.rb
|
253
272
|
- lib/arrow/record.rb
|
254
273
|
- lib/arrow/rolling-window.rb
|
274
|
+
- lib/arrow/scalar.rb
|
255
275
|
- lib/arrow/schema.rb
|
256
276
|
- lib/arrow/slicer.rb
|
257
277
|
- lib/arrow/sort-key.rb
|
@@ -303,6 +323,7 @@ files:
|
|
303
323
|
- test/test-array-builder.rb
|
304
324
|
- test/test-array.rb
|
305
325
|
- test/test-bigdecimal.rb
|
326
|
+
- test/test-boolean-scalar.rb
|
306
327
|
- test/test-buffer.rb
|
307
328
|
- test/test-chunked-array.rb
|
308
329
|
- test/test-column.rb
|
@@ -326,10 +347,13 @@ files:
|
|
326
347
|
- test/test-file-output-stream.rb
|
327
348
|
- test/test-fixed-size-binary-array-builder.rb
|
328
349
|
- test/test-fixed-size-binary-array.rb
|
350
|
+
- test/test-float-scalar.rb
|
351
|
+
- test/test-function.rb
|
329
352
|
- test/test-group.rb
|
330
353
|
- test/test-list-array-builder.rb
|
331
354
|
- test/test-list-array.rb
|
332
355
|
- test/test-list-data-type.rb
|
356
|
+
- test/test-memory-view.rb
|
333
357
|
- test/test-null-array.rb
|
334
358
|
- test/test-orc.rb
|
335
359
|
- test/test-record-batch-builder.rb
|
@@ -364,8 +388,8 @@ homepage: https://arrow.apache.org/
|
|
364
388
|
licenses:
|
365
389
|
- Apache-2.0
|
366
390
|
metadata:
|
367
|
-
msys2_mingw_dependencies: arrow>=
|
368
|
-
post_install_message:
|
391
|
+
msys2_mingw_dependencies: arrow>=5.0.0
|
392
|
+
post_install_message:
|
369
393
|
rdoc_options: []
|
370
394
|
require_paths:
|
371
395
|
- lib
|
@@ -380,88 +404,92 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
404
|
- !ruby/object:Gem::Version
|
381
405
|
version: '0'
|
382
406
|
requirements: []
|
383
|
-
rubygems_version: 3.2.
|
384
|
-
signing_key:
|
407
|
+
rubygems_version: 3.2.22
|
408
|
+
signing_key:
|
385
409
|
specification_version: 4
|
386
410
|
summary: Red Arrow is the Ruby bindings of Apache Arrow
|
387
411
|
test_files:
|
388
|
-
- test/
|
389
|
-
- test/
|
390
|
-
- test/
|
391
|
-
- test/
|
392
|
-
- test/
|
393
|
-
- test/
|
394
|
-
- test/
|
395
|
-
- test/
|
396
|
-
- test/
|
397
|
-
- test/
|
412
|
+
- test/fixture/TestOrcFile.test1.orc
|
413
|
+
- test/fixture/float-integer.csv
|
414
|
+
- test/fixture/integer-float.csv
|
415
|
+
- test/fixture/null-with-double-quote.csv
|
416
|
+
- test/fixture/null-without-double-quote.csv
|
417
|
+
- test/fixture/with-header-float.csv
|
418
|
+
- test/fixture/with-header.csv
|
419
|
+
- test/fixture/without-header-float.csv
|
420
|
+
- test/fixture/without-header.csv
|
421
|
+
- test/helper/fixture.rb
|
422
|
+
- test/helper/omittable.rb
|
398
423
|
- test/helper.rb
|
399
|
-
- test/test-
|
400
|
-
- test/test-
|
424
|
+
- test/raw-records/test-basic-arrays.rb
|
425
|
+
- test/raw-records/test-dense-union-array.rb
|
426
|
+
- test/raw-records/test-list-array.rb
|
427
|
+
- test/raw-records/test-multiple-columns.rb
|
428
|
+
- test/raw-records/test-sparse-union-array.rb
|
429
|
+
- test/raw-records/test-struct-array.rb
|
430
|
+
- test/raw-records/test-table.rb
|
401
431
|
- test/run-test.rb
|
402
|
-
- test/test-timestamp-array.rb
|
403
|
-
- test/test-date32-array.rb
|
404
432
|
- test/test-array-builder.rb
|
433
|
+
- test/test-array.rb
|
434
|
+
- test/test-bigdecimal.rb
|
435
|
+
- test/test-boolean-scalar.rb
|
436
|
+
- test/test-buffer.rb
|
437
|
+
- test/test-chunked-array.rb
|
438
|
+
- test/test-column.rb
|
439
|
+
- test/test-csv-loader.rb
|
440
|
+
- test/test-data-type.rb
|
441
|
+
- test/test-date32-array.rb
|
405
442
|
- test/test-date64-array.rb
|
406
|
-
- test/test-
|
443
|
+
- test/test-decimal128-array-builder.rb
|
444
|
+
- test/test-decimal128-array.rb
|
407
445
|
- test/test-decimal128-data-type.rb
|
408
|
-
- test/test-
|
409
|
-
- test/test-
|
446
|
+
- test/test-decimal128.rb
|
447
|
+
- test/test-decimal256-array-builder.rb
|
448
|
+
- test/test-decimal256-array.rb
|
449
|
+
- test/test-decimal256-data-type.rb
|
410
450
|
- test/test-decimal256.rb
|
451
|
+
- test/test-dense-union-data-type.rb
|
411
452
|
- test/test-dictionary-array.rb
|
412
|
-
- test/test-
|
413
|
-
- test/test-
|
453
|
+
- test/test-dictionary-data-type.rb
|
454
|
+
- test/test-feather.rb
|
414
455
|
- test/test-field.rb
|
415
|
-
- test/test-
|
416
|
-
- test/test-
|
417
|
-
- test/test-bigdecimal.rb
|
456
|
+
- test/test-file-output-stream.rb
|
457
|
+
- test/test-fixed-size-binary-array-builder.rb
|
418
458
|
- test/test-fixed-size-binary-array.rb
|
419
|
-
- test/test-
|
420
|
-
- test/test-
|
421
|
-
- test/test-time64-array.rb
|
422
|
-
- test/test-rolling-window.rb
|
423
|
-
- test/test-dictionary-data-type.rb
|
424
|
-
- test/fixture/integer-float.csv
|
425
|
-
- test/fixture/without-header-float.csv
|
426
|
-
- test/fixture/null-with-double-quote.csv
|
427
|
-
- test/fixture/with-header-float.csv
|
428
|
-
- test/fixture/TestOrcFile.test1.orc
|
429
|
-
- test/fixture/null-without-double-quote.csv
|
430
|
-
- test/fixture/without-header.csv
|
431
|
-
- test/fixture/with-header.csv
|
432
|
-
- test/fixture/float-integer.csv
|
433
|
-
- test/test-orc.rb
|
434
|
-
- test/test-null-array.rb
|
435
|
-
- test/test-time32-data-type.rb
|
436
|
-
- test/test-struct-data-type.rb
|
437
|
-
- test/test-sort-indices.rb
|
459
|
+
- test/test-float-scalar.rb
|
460
|
+
- test/test-function.rb
|
438
461
|
- test/test-group.rb
|
439
|
-
- test/test-sort-key.rb
|
440
|
-
- test/test-buffer.rb
|
441
|
-
- test/values/test-struct-array.rb
|
442
|
-
- test/values/test-basic-arrays.rb
|
443
|
-
- test/values/test-list-array.rb
|
444
|
-
- test/values/test-dense-union-array.rb
|
445
|
-
- test/values/test-sparse-union-array.rb
|
446
|
-
- test/test-slicer.rb
|
447
462
|
- test/test-list-array-builder.rb
|
448
|
-
- test/test-
|
463
|
+
- test/test-list-array.rb
|
464
|
+
- test/test-list-data-type.rb
|
465
|
+
- test/test-memory-view.rb
|
466
|
+
- test/test-null-array.rb
|
467
|
+
- test/test-orc.rb
|
449
468
|
- test/test-record-batch-builder.rb
|
450
|
-
- test/
|
451
|
-
- test/raw-records/test-table.rb
|
452
|
-
- test/raw-records/test-basic-arrays.rb
|
453
|
-
- test/raw-records/test-list-array.rb
|
454
|
-
- test/raw-records/test-dense-union-array.rb
|
455
|
-
- test/raw-records/test-sparse-union-array.rb
|
456
|
-
- test/raw-records/test-multiple-columns.rb
|
457
|
-
- test/test-array.rb
|
458
|
-
- test/test-file-output-stream.rb
|
469
|
+
- test/test-record-batch-file-reader.rb
|
459
470
|
- test/test-record-batch-iterator.rb
|
460
|
-
- test/test-
|
461
|
-
- test/test-
|
462
|
-
- test/test-chunked-array.rb
|
471
|
+
- test/test-record-batch.rb
|
472
|
+
- test/test-rolling-window.rb
|
463
473
|
- test/test-schema.rb
|
474
|
+
- test/test-slicer.rb
|
475
|
+
- test/test-sort-indices.rb
|
476
|
+
- test/test-sort-key.rb
|
477
|
+
- test/test-sort-options.rb
|
478
|
+
- test/test-sparse-union-data-type.rb
|
464
479
|
- test/test-struct-array-builder.rb
|
465
|
-
- test/
|
466
|
-
- test/
|
480
|
+
- test/test-struct-array.rb
|
481
|
+
- test/test-struct-data-type.rb
|
482
|
+
- test/test-table.rb
|
483
|
+
- test/test-tensor.rb
|
484
|
+
- test/test-time.rb
|
467
485
|
- test/test-time32-array.rb
|
486
|
+
- test/test-time32-data-type.rb
|
487
|
+
- test/test-time64-array.rb
|
488
|
+
- test/test-time64-data-type.rb
|
489
|
+
- test/test-timestamp-array.rb
|
490
|
+
- test/test-timestamp-data-type.rb
|
491
|
+
- test/values/test-basic-arrays.rb
|
492
|
+
- test/values/test-dense-union-array.rb
|
493
|
+
- test/values/test-list-array.rb
|
494
|
+
- test/values/test-sparse-union-array.rb
|
495
|
+
- test/values/test-struct-array.rb
|