Skip to content

perf(result-table): move cell decode validation into build_plan - #173

Merged
yuly3 merged 2 commits into
mainfrom
perf/result-table-cell-plan
Jul 4, 2026
Merged

perf(result-table): move cell decode validation into build_plan#173
yuly3 merged 2 commits into
mainfrom
perf/result-table-cell-plan

Conversation

@yuly3

@yuly3 yuly3 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

yuly3 added 2 commits July 4, 2026 14:16
Introduce a typed per-cell decode plan so schema-dependent validation and
scale precomputation run once per table instead of once per cell.

- FromCell gains an associated Plan, build_plan(&Column), and
  from_cell_with_plan(raw, plan); type-compatibility checks move to plan
  build time and surface as SchemaError::IncompatibleColumnType.
- Add CellPlan<T> and RowRef::get_planned; remove RowRef::get.
- Tuple and derive FromRow plans store typed CellPlan values.
- Precompute timestamp/time scale factors; keep scale-based wrappers for
  the dynamic decode path.
- Add a timestamp-heavy decode benchmark.
Rename the planned row access helper to get_with_plan and make the CellPlan field name describe the stored decode plan.

Refresh related documentation and error text so schema validation and incompatible column type wording match the plan-building behavior.
@yuly3 yuly3 self-assigned this Jul 4, 2026
@yuly3
yuly3 marked this pull request as ready for review July 4, 2026 05:48
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@yuly3
yuly3 merged commit 811e3d5 into main Jul 4, 2026
6 checks passed
@yuly3
yuly3 deleted the perf/result-table-cell-plan branch July 4, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant