Ray's Knowledge Base
Unlock

duql hopping buckets copy each row into every window that holds it

DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

Implementing hopping buckets (X2 hopping).

Decision#

bucket W every E [at T] copies each row into every window [T+kE, T+kE+W) that holds it (map_rows + take before the group), exact for every frame-plan aggregate; cost rows x W/E. The trace plan refuses hopping, so busy/concurrency/utilization/active error after a hopping bucket.

Why#

Copying rows keeps every frame-plan aggregate exact without a merge step.

Rejected options#

Tumbling sub-buckets of width E merged per window (keeps index tiers and occupancy, but GroupFold has no merge and quantiles would be approximate).

Also found by searching

  • bucket W every E at T copies each row into every window that holds it
  • map_rows plus take before the group, exact for every frame-plan aggregate
  • cost rows x W/E
  • the trace plan refuses hopping so busy/concurrency/utilization/active error after a hopping bucket