Skip to content

refactor(core): separate column selection from preparation - #11071

Merged
ibgreen merged 6 commits into
masterfrom
codex/arrow-column-selection
Nov 11, 2026
Merged

ibgreen merged 6 commits into
masterfrom
codex/arrow-column-selection

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

For #11069

Background

Separate explicit column selection from conversion so layer subclasses can select declared inputs without uploading data or changing ownership. Existing accessor and binary fallbacks are preserved.

Change List

  • Add internal resolveColumns for declared public inputs, excluding internal shader inputs.
  • Expose selection through a protected Layer method with an Arrow-independent declaration signature.
  • Use resolved inputs for LayerColumns conversion and fallbacks.
  • Add selection tests and document the helper in TSDoc.

The application guide remains unchanged: Column layouts and Mixed inputs already explain the relevant usage.

Validation

  • 36 focused selection, preparation, lifecycle, schema and converter tests pass; selection/preparation tests rerun after the declaration fix.
  • yarn lint and core declaration generation pass.
  • Inspected emitted Layer.d.ts: no resolver import or Arrow converter types in the new signature.
  • Refreshed against master, resolving the guide conflict with refactor(core): share Arrow schema compatibility checks #11070.
  • Local full build reaches the existing Jupyter/Lumino TS2883 portability error caused by shared temporary dependencies. GitHub CI passes on the latest commit: package builds, coverage, WebGPU, website, Python and projection example.

Note

Low Risk
Low-risk refactor extracting column resolution logic into a standalone utility and protected Layer method with accompanying unit tests.

Overview
Extracts explicit column input selection into a new resolveColumns utility and exposes it through a protected method on Layer. This allows layer subclasses to query declared column props without triggering GPU data conversions or altering ownership.

In addition, LayerColumns now delegates its input resolution and fallback checks to resolveColumns, keeping internal shader inputs and undefined props excluded from column preparation.

Reviewed by Cursor Bugbot for commit e4ad38c. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Separates column selection from conversion and exposes selection to layer subclasses.

  • Layers can select declared column inputs separately from preparing them.

The previous unnumbered finding about required Arrow types is fixed by the explicit Record<string, unknown> return type.

Reviews (6) · Last reviewed commit: "docs(core): clarify resolved column retu..." · Reviewed by Greptile

@ibgreen ibgreen mentioned this pull request Nov 8, 2026
7 tasks
@coveralls

coveralls commented Nov 8, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.32% (-1.1%) from 84.423% — codex/arrow-column-selection into master

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review doc relevance

Comment thread modules/core/src/lib/layer.ts Resolved

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 38489ef; recommend approval. No P1s.

LayerColumns picks the same sources as master, and the Layer signature no longer names Arrow types. The column node tests pass at this head.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.

Comment thread modules/core/src/lib/layer.ts Resolved
@ibgreen
ibgreen merged commit 3eb3783 into master Nov 11, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/arrow-column-selection branch November 11, 2026 00:02
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.

3 participants