parket 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58edfbc3c1610513eb1b3bff61fd5d7deaad0dfe98695d666472ee2a004f608f
4
- data.tar.gz: de47815852736ce9e661d6e8deea335fc58bdd50338d7c4e1eb8f7acae229191
3
+ metadata.gz: 5647f9eecba6bfd0a68222c1065f460e8d7e902061d3405b6f4437fdb67ac51b
4
+ data.tar.gz: 6abff37fa2bb48c17f7debd8e0ea2803225e31e634c4397446160b928cc71ee5
5
5
  SHA512:
6
- metadata.gz: 29b7d51dd794f621e6ac01e89e2800355c1ac9bcb3693686b26ff914317b9cf5bf7d5ef66b08ef0220b5fc3f75893ac81e390dcde5c56fdefc9278911df71e81
7
- data.tar.gz: 32f1c94bb5161a62f0ad33fb2d07faa4d3915ceeb9ba1b8f2f9873802683601fec2a4f239fdefb908968287cc059d4bfd076966075f931527e5f944643036bf8
6
+ metadata.gz: 4774ae55dcf2ebafcdf15b89aef5e438f5cf582bd1bcc7f0fbabebf3afbadc51a73300c160b3bbc604b6c0da3a700e243bbf2aa8a551ae84ce4b318f14c43b07
7
+ data.tar.gz: f34ead333cd3d5be84795b7d7a79353f91c899b345dc01d3d98540b8fa932a16fcff319fa6f7315a3f6fcc14ba406be3a565e67021087edbdfee739ec5908035
data/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  Parket follows [Semantic Versioning](https://semver.org/). Until 1.0 a minor
4
4
  release may change the API; the changes are listed here.
5
5
 
6
+ ## 0.2.1 - 2026-12-01
7
+
8
+ - `Column#to_buffer` no longer raises `RuntimeError: scan re-entered
9
+ through a continuation after it moved on` where there was no
10
+ continuation. In 0.2.0 a read whose wait for its decode threads came
11
+ just after a signal arrived, or just after Ruby noted that another
12
+ thread wanted the GVL, took a wait that Ruby did not make for a read
13
+ that was over. It was rare: about one read in ten thousand with a
14
+ signal every 0.2 ms. The read can be repeated. `each_row`, `each_batch`
15
+ and writing were not affected, and neither was 0.1.
16
+
6
17
  ## 0.2.0 - 2026-12-01
7
18
 
8
19
  The write path: `Parket.write`. Reading is as in 0.1, but for the fix
data/Cargo.lock CHANGED
@@ -567,7 +567,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
567
567
 
568
568
  [[package]]
569
569
  name = "parket"
570
- version = "0.2.0"
570
+ version = "0.2.1"
571
571
  dependencies = [
572
572
  "arrow-array",
573
573
  "arrow-buffer",
data/README.md CHANGED
@@ -2697,7 +2697,7 @@ Rake tasks:
2697
2697
  | task | what it does |
2698
2698
  |---|---|
2699
2699
  | `rake compile` | Builds the extension into `lib/parket/`. |
2700
- | `rake test` | The suite, with the default settings, in two processes: `test/gc_test.rb` and `test/write_gc_test.rb`, whose tests run under `GC.stress`, in one of their own (`rake test:stressed`), where the heap is small and a collection quick. `PARKET_SLOWEST=15` lists the tests that took longest. `TEST=test/open_test.rb` runs one file and `TESTOPTS="--name=/pattern/"` passes options to minitest; both work for the `test:` tasks below as well. |
2700
+ | `rake test` | The suite, with the default settings, in two processes: `test/gc_test.rb` and `test/write_gc_test.rb`, whose tests run under `GC.stress`, in one of their own (`rake test:stressed`; `rake test:rest` is the other), where the heap is small and a collection quick. `PARKET_TEST_AT_ONCE=1` runs the two at the same time, in two thirds of the time on three processors or more, as CI does on Linux. `PARKET_SLOWEST=15` lists the tests that took longest. `TEST=test/open_test.rb` runs one file and `TESTOPTS="--name=/pattern/"` passes options to minitest; both work for the `test:` tasks below as well. |
2701
2701
  | `rake test:inline` | The suite with `PARKET_THREADS=0`: every scan decodes, and every file is encoded, on the calling thread. |
2702
2702
  | `rake test:threaded` | The suite with every scan forced onto decode threads, however small the file, and with a read-ahead budget of one byte so that every thread also waits for room; and with every file written on encoder threads, with one byte of room for rows that are not encoded yet. |
2703
2703
  | `rake test:gc` | The suite with `PARKET_GC=stress`: the first scans and writes of every test run under `GC.stress`, up to an allowance per test that `rakelib/test.rake` describes. Takes about five times as long as `rake test`. |
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "parket"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  edition = "2021"
5
5
  rust-version = "1.88"
6
6
  description = "Rust extension of the parket Ruby gem, a Parquet reader and writer for Ruby built on arrow-rs"
@@ -545,7 +545,21 @@ impl Cursor {
545
545
  drain.stop.store(false, Ordering::Release);
546
546
  match held.take() {
547
547
  Some(until) => drain.run(Some(until)),
548
- None => gvl::without_gvl(ruby, drain)?,
548
+ None => {
549
+ // Ruby makes no wait while it has something noted
550
+ // down for the thread: a signal that arrived since
551
+ // the look above, or its timer's note that another
552
+ // thread wants the GVL. Then nothing ran, and there
553
+ // is no end to take: taken all the same, the empty
554
+ // place read as a read that was over, and one read
555
+ // in ten thousand under a storm of signals raised
556
+ // that it had been re-entered. Asked again instead,
557
+ // after the look at the top.
558
+ if !gvl::without_gvl_or_interrupts(ruby, drain) {
559
+ continue;
560
+ }
561
+ ruby.thread_check_ints()?;
562
+ }
549
563
  }
550
564
  // The two calls that check for interrupts may run Ruby code:
551
565
  // a signal handler, say. If that code captured a continuation,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parket
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lawrence Lin