Skip to content

v4.7.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 04:16
· 2581 commits to main since this release
da4dc65

Nuthatch 4.7.0 undoes a slowdown 4.6.0 brought to joins on computed keys, stops a pool with a
throttled endpoint from retrying one range forever, prints dates and timestamps as dates, and stops a
narrow window from counting a sealed block's rows twice in the derived views. It is a minor because an
explicit --window now caps the window and because /sql renders DATE and TIMESTAMP differently.

Speed

4.6.0 switched join dynamic filters back on. Where a join key is computed from stored text, such as a
cast, the filter recomputed that key for every scanned row and skipped nothing, because no Parquet
statistic covers a computed key. On kittiwake's QoS statements over a copy of that nest:

Statement 4.5.0 4.6.0 4.7.0
indexer day 1.38 s 2.85 s 1.53 s
seconds behind 0.95 s 2.33 s 1.05 s
network rows 1.04 s 2.61 s 1.22 s

A join now keeps its dynamic filter only where every key reaches the scan as a plain column, so the
allocations nest keeps what it gained from them. The exact float sum from 4.6.0 is also cheaper; what
remains over 4.5.0 is its cost.

RPC pools and the window

  • An endpoint that answers 429 is routed around while another can serve. Before, the pool reported
    the 429 instead of a healthy endpoint's "range too large", the window never narrowed, and the same
    range was retried forever (#1853).
  • Retry-After is honoured, capped at 30 s. Without it, an endpoint rests 1 s, doubling on each
    further 429 up to 30 s, and is asked again as soon as it answers. When every endpoint is resting,
    each is asked only after its own rest.
  • An explicit --window is now the largest window as well as the first. The window still shrinks
    below it. Without the flag nothing changes.

Fixes

  • Derived views. A window re-reads the last two blocks of the one before it. When the window
    stayed narrow close to finality, a re-read block that had already been sealed and pruned from the
    hot store was folded again, so balances and other derived views counted its rows twice. Re-read
    rows at or below the sealed watermark are now dropped.
  • Dates. /sql and nuthatch sql print DATE as YYYY-MM-DD and TIMESTAMP as RFC 3339 in UTC,
    where they printed Date32(20730) and Timestamp(Microsecond, ...) (#1852).

Compatibility and upgrade

Replace the binary and restart. There is no storage migration or re-index. A client that parsed the
old Date32(...) text from /sql needs to read ISO dates instead. A unit started with a small
--window to begin narrow now stays at or below it.