red-arrow 1.0.0 → 4.0.1

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/ext/arrow/converters.hpp +15 -2
  3. data/ext/arrow/extconf.rb +14 -3
  4. data/ext/arrow/raw-records.cpp +1 -0
  5. data/ext/arrow/values.cpp +1 -0
  6. data/lib/arrow/array-builder.rb +11 -6
  7. data/lib/arrow/array.rb +118 -0
  8. data/lib/arrow/bigdecimal-extension.rb +5 -1
  9. data/lib/arrow/data-type.rb +14 -5
  10. data/lib/arrow/decimal128-array-builder.rb +21 -25
  11. data/lib/arrow/decimal128-data-type.rb +2 -0
  12. data/lib/arrow/decimal128.rb +18 -0
  13. data/lib/arrow/decimal256-array-builder.rb +61 -0
  14. data/lib/arrow/decimal256-array.rb +25 -0
  15. data/lib/arrow/decimal256-data-type.rb +73 -0
  16. data/lib/arrow/decimal256.rb +60 -0
  17. data/lib/arrow/dense-union-data-type.rb +2 -2
  18. data/lib/arrow/dictionary-data-type.rb +2 -2
  19. data/lib/arrow/fixed-size-binary-array-builder.rb +38 -0
  20. data/lib/arrow/fixed-size-binary-array.rb +26 -0
  21. data/lib/arrow/loader.rb +15 -0
  22. data/lib/arrow/sort-key.rb +193 -0
  23. data/lib/arrow/sort-options.rb +109 -0
  24. data/lib/arrow/sparse-union-data-type.rb +2 -2
  25. data/lib/arrow/time32-data-type.rb +2 -2
  26. data/lib/arrow/time64-data-type.rb +2 -2
  27. data/lib/arrow/timestamp-data-type.rb +2 -2
  28. data/lib/arrow/version.rb +1 -1
  29. data/red-arrow.gemspec +1 -0
  30. data/test/raw-records/test-basic-arrays.rb +17 -0
  31. data/test/raw-records/test-dense-union-array.rb +14 -0
  32. data/test/raw-records/test-list-array.rb +20 -0
  33. data/test/raw-records/test-sparse-union-array.rb +14 -0
  34. data/test/raw-records/test-struct-array.rb +15 -0
  35. data/test/test-array.rb +122 -2
  36. data/test/test-bigdecimal.rb +20 -3
  37. data/test/test-decimal128-array-builder.rb +18 -1
  38. data/test/test-decimal128-data-type.rb +2 -2
  39. data/test/test-decimal128.rb +38 -0
  40. data/test/test-decimal256-array-builder.rb +112 -0
  41. data/test/test-decimal256-array.rb +38 -0
  42. data/test/test-decimal256-data-type.rb +31 -0
  43. data/test/test-decimal256.rb +102 -0
  44. data/test/test-fixed-size-binary-array-builder.rb +92 -0
  45. data/test/test-fixed-size-binary-array.rb +36 -0
  46. data/test/test-orc.rb +19 -23
  47. data/test/test-sort-indices.rb +40 -0
  48. data/test/test-sort-key.rb +81 -0
  49. data/test/test-sort-options.rb +58 -0
  50. data/test/test-struct-array-builder.rb +8 -8
  51. data/test/test-struct-array.rb +2 -2
  52. data/test/values/test-basic-arrays.rb +11 -0
  53. data/test/values/test-dense-union-array.rb +14 -0
  54. data/test/values/test-list-array.rb +18 -0
  55. data/test/values/test-sparse-union-array.rb +14 -0
  56. data/test/values/test-struct-array.rb +15 -0
  57. metadata +101 -61
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 4.0.1
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: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bigdecimal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.3
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: extpp
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -208,12 +222,18 @@ files:
208
222
  - lib/arrow/decimal128-array.rb
209
223
  - lib/arrow/decimal128-data-type.rb
210
224
  - lib/arrow/decimal128.rb
225
+ - lib/arrow/decimal256-array-builder.rb
226
+ - lib/arrow/decimal256-array.rb
227
+ - lib/arrow/decimal256-data-type.rb
228
+ - lib/arrow/decimal256.rb
211
229
  - lib/arrow/dense-union-data-type.rb
212
230
  - lib/arrow/dictionary-array.rb
213
231
  - lib/arrow/dictionary-data-type.rb
214
232
  - lib/arrow/field-containable.rb
215
233
  - lib/arrow/field.rb
216
234
  - lib/arrow/file-output-stream.rb
235
+ - lib/arrow/fixed-size-binary-array-builder.rb
236
+ - lib/arrow/fixed-size-binary-array.rb
217
237
  - lib/arrow/generic-filterable.rb
218
238
  - lib/arrow/generic-takeable.rb
219
239
  - lib/arrow/group.rb
@@ -234,6 +254,8 @@ files:
234
254
  - lib/arrow/rolling-window.rb
235
255
  - lib/arrow/schema.rb
236
256
  - lib/arrow/slicer.rb
257
+ - lib/arrow/sort-key.rb
258
+ - lib/arrow/sort-options.rb
237
259
  - lib/arrow/sparse-union-data-type.rb
238
260
  - lib/arrow/struct-array-builder.rb
239
261
  - lib/arrow/struct-array.rb
@@ -292,12 +314,18 @@ files:
292
314
  - test/test-decimal128-array.rb
293
315
  - test/test-decimal128-data-type.rb
294
316
  - test/test-decimal128.rb
317
+ - test/test-decimal256-array-builder.rb
318
+ - test/test-decimal256-array.rb
319
+ - test/test-decimal256-data-type.rb
320
+ - test/test-decimal256.rb
295
321
  - test/test-dense-union-data-type.rb
296
322
  - test/test-dictionary-array.rb
297
323
  - test/test-dictionary-data-type.rb
298
324
  - test/test-feather.rb
299
325
  - test/test-field.rb
300
326
  - test/test-file-output-stream.rb
327
+ - test/test-fixed-size-binary-array-builder.rb
328
+ - test/test-fixed-size-binary-array.rb
301
329
  - test/test-group.rb
302
330
  - test/test-list-array-builder.rb
303
331
  - test/test-list-array.rb
@@ -311,6 +339,9 @@ files:
311
339
  - test/test-rolling-window.rb
312
340
  - test/test-schema.rb
313
341
  - test/test-slicer.rb
342
+ - test/test-sort-indices.rb
343
+ - test/test-sort-key.rb
344
+ - test/test-sort-options.rb
314
345
  - test/test-sparse-union-data-type.rb
315
346
  - test/test-struct-array-builder.rb
316
347
  - test/test-struct-array.rb
@@ -333,8 +364,8 @@ homepage: https://arrow.apache.org/
333
364
  licenses:
334
365
  - Apache-2.0
335
366
  metadata:
336
- msys2_mingw_dependencies: arrow>=1.0.0
337
- post_install_message:
367
+ msys2_mingw_dependencies: arrow>=4.0.1
368
+ post_install_message:
338
369
  rdoc_options: []
339
370
  require_paths:
340
371
  - lib
@@ -349,79 +380,88 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
380
  - !ruby/object:Gem::Version
350
381
  version: '0'
351
382
  requirements: []
352
- rubygems_version: 3.1.2
353
- signing_key:
383
+ rubygems_version: 3.2.5
384
+ signing_key:
354
385
  specification_version: 4
355
386
  summary: Red Arrow is the Ruby bindings of Apache Arrow
356
387
  test_files:
357
- - test/test-orc.rb
358
- - test/test-file-output-stream.rb
388
+ - test/test-decimal256-array-builder.rb
389
+ - test/test-time64-data-type.rb
390
+ - test/test-sort-options.rb
391
+ - test/test-feather.rb
392
+ - test/test-decimal128.rb
393
+ - test/test-struct-array.rb
394
+ - test/test-data-type.rb
395
+ - test/test-list-data-type.rb
359
396
  - test/test-dense-union-data-type.rb
360
- - test/test-record-batch-builder.rb
397
+ - test/test-decimal256-array.rb
398
+ - test/helper.rb
361
399
  - test/test-record-batch.rb
362
- - test/test-list-data-type.rb
363
- - test/test-decimal128.rb
364
- - test/test-chunked-array.rb
365
- - test/test-array.rb
366
- - test/test-null-array.rb
367
- - test/test-struct-array-builder.rb
368
400
  - test/test-table.rb
401
+ - test/run-test.rb
402
+ - test/test-timestamp-array.rb
403
+ - test/test-date32-array.rb
404
+ - test/test-array-builder.rb
405
+ - test/test-date64-array.rb
406
+ - test/test-record-batch-file-reader.rb
369
407
  - test/test-decimal128-data-type.rb
370
- - test/fixture/TestOrcFile.test1.orc
408
+ - test/test-time.rb
409
+ - test/test-timestamp-data-type.rb
410
+ - test/test-decimal256.rb
411
+ - test/test-dictionary-array.rb
412
+ - test/test-fixed-size-binary-array-builder.rb
413
+ - test/test-column.rb
414
+ - test/test-field.rb
415
+ - test/test-decimal128-array.rb
416
+ - test/test-csv-loader.rb
417
+ - test/test-bigdecimal.rb
418
+ - test/test-fixed-size-binary-array.rb
419
+ - test/test-list-array.rb
420
+ - test/test-decimal256-data-type.rb
421
+ - test/test-time64-array.rb
422
+ - test/test-rolling-window.rb
423
+ - test/test-dictionary-data-type.rb
371
424
  - test/fixture/integer-float.csv
372
- - test/fixture/null-with-double-quote.csv
373
- - test/fixture/with-header.csv
374
- - test/fixture/without-header.csv
375
425
  - test/fixture/without-header-float.csv
426
+ - test/fixture/null-with-double-quote.csv
376
427
  - test/fixture/with-header-float.csv
428
+ - test/fixture/TestOrcFile.test1.orc
377
429
  - test/fixture/null-without-double-quote.csv
430
+ - test/fixture/without-header.csv
431
+ - test/fixture/with-header.csv
378
432
  - test/fixture/float-integer.csv
379
- - test/run-test.rb
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
380
438
  - test/test-group.rb
381
- - test/helper.rb
382
- - test/test-time64-array.rb
383
- - test/test-csv-loader.rb
384
- - test/test-feather.rb
385
- - test/test-time64-data-type.rb
386
- - test/values/test-sparse-union-array.rb
439
+ - test/test-sort-key.rb
440
+ - test/test-buffer.rb
441
+ - test/values/test-struct-array.rb
387
442
  - test/values/test-basic-arrays.rb
388
- - test/values/test-dense-union-array.rb
389
443
  - test/values/test-list-array.rb
390
- - test/values/test-struct-array.rb
391
- - test/test-struct-data-type.rb
392
- - test/test-date64-array.rb
393
- - test/raw-records/test-sparse-union-array.rb
394
- - test/raw-records/test-multiple-columns.rb
395
- - test/raw-records/test-basic-arrays.rb
444
+ - test/values/test-dense-union-array.rb
445
+ - test/values/test-sparse-union-array.rb
446
+ - test/test-slicer.rb
447
+ - test/test-list-array-builder.rb
448
+ - test/test-sparse-union-data-type.rb
449
+ - test/test-record-batch-builder.rb
450
+ - test/raw-records/test-struct-array.rb
396
451
  - test/raw-records/test-table.rb
397
- - test/raw-records/test-dense-union-array.rb
452
+ - test/raw-records/test-basic-arrays.rb
398
453
  - test/raw-records/test-list-array.rb
399
- - test/raw-records/test-struct-array.rb
400
- - test/test-list-array.rb
401
- - test/test-timestamp-data-type.rb
402
- - test/test-timestamp-array.rb
403
- - test/test-data-type.rb
404
- - test/test-array-builder.rb
405
- - test/test-time32-data-type.rb
406
- - test/test-record-batch-file-reader.rb
407
- - test/test-rolling-window.rb
408
- - test/test-list-array-builder.rb
409
- - test/test-slicer.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
459
+ - test/test-record-batch-iterator.rb
460
+ - test/test-tensor.rb
410
461
  - test/test-decimal128-array-builder.rb
462
+ - test/test-chunked-array.rb
411
463
  - test/test-schema.rb
412
- - test/test-time.rb
413
- - test/test-column.rb
414
- - test/test-bigdecimal.rb
415
- - test/test-sparse-union-data-type.rb
416
- - test/test-dictionary-array.rb
417
- - test/test-tensor.rb
418
- - test/test-time32-array.rb
419
- - test/test-buffer.rb
420
- - test/test-decimal128-array.rb
421
- - test/helper/omittable.rb
464
+ - test/test-struct-array-builder.rb
422
465
  - test/helper/fixture.rb
423
- - test/test-dictionary-data-type.rb
424
- - test/test-date32-array.rb
425
- - test/test-field.rb
426
- - test/test-record-batch-iterator.rb
427
- - test/test-struct-array.rb
466
+ - test/helper/omittable.rb
467
+ - test/test-time32-array.rb