altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

data_diff: configurable MAX_STEPS and wall-clock timeout

Open anandgupta42 opened this issue 7 months ago • 1 comments

Flagged during v0.5.22 release review (End User + Tech Lead personas).

MAX_STEPS = 200 in packages/opencode/src/altimate/native/connections/data-diff.ts is hardcoded. The error message now suggests partition_column / where_clause remediations (good), but:

  • No per-query wall-clock timeout — runaway cross-database HashDiff can hang and rack up warehouse cost
  • No user override for legitimate billion-row table cases
  • No telemetry breadcrumb when we hit the cap

Proposed:

  • data_diff_max_steps config, default 200
  • Per-SQL-step wall-clock timeout (60s default, configurable)
  • Emit telemetry event on cap hit so we know how often users need more headroom

Deferred because: no reported hits in the field yet. File for tracking.

anandgupta42 avatar Apr 17 '26 14:04 anandgupta42

Consolidated into #1680, which tracks this together with related issues. The original report here stays linked from that tracker.

anandgupta42 avatar Nov 05 '26 21:11 anandgupta42