You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: AND/OR seekOp always returns 0 due to min() with zero-initialized accumulator #24305
pos starts at 0 (the minimum possible block index). Since all seek positions are >= 0, min(0, pp) always returns 0. The seekOp is effectively dead code.
The AND case uses min but should use max. For AND semantics, ALL conditions must be satisfied, so we can safely skip to the furthest (maximum) seek position. For OR, min is correct since any single condition might match.
Create a table with a composite filter that compiles to AND or OR of two seekable sub-expressions (e.g., WHERE pk > 500 AND pk < 900)
The reader will always start scanning from block 0 regardless of the seek positions computed by the child expressions
Additional information
This is an optimization-only bug — correctness is preserved because blockFilterOp still validates each block. The impact is unnecessary block scans on sorted objects when compound filters are used.
Activity
fix(readutil): implement seekOp/canQuickBreak and fix compound seekOp
fix(readutil): implement seekOp/canQuickBreak and fix compound seekOp