Skip to content

refactor(layers): extract shared Arrow column support - #11028

Merged
ibgreen merged 2 commits into
masterfrom
codex/arrow-layer-support
Nov 4, 2026
Merged

ibgreen merged 2 commits into
masterfrom
codex/arrow-layer-support

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

For #10920

Background

ScatterplotLayer and ArcLayer need the same Arrow conversion, accessor fallback, and upload lifecycle. Extracting that code lets the layer integration be reviewed separately.

Change List

  • Extract shared Arrow conversion, accessor fallback, and batch binding
  • Centralize conversion scheduling in LayerColumns.updateIfNeeded()
  • Declare the existing luma graph dependency in layers
  • Unit tests for failed, superseded, and skipped updates

Verified: yarn, yarn lint, and focused lifecycle tests.


Note

Low Risk
Introduces a self-contained internal utility class and unit tests without altering existing layer behavior or runtime code paths yet.

Overview
Introduces a new LayerColumns utility class in @deck.gl/layers to share Arrow column conversion, accessor fallback handling, and batch drawing across layers such as ScatterplotLayer and ArcLayer.

LayerColumns coordinates asynchronous column conversion using ArrowConverter, automatically generates fallback constant or buffer vectors for missing accessors and binary attributes, and prevents stale asynchronous updates from overwriting newer layer state. It also binds attribute vectors and constants to luma's GPUVectorModel for batched rendering and adds @luma.gl/graph as a dependency.

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-04T14:31:10.608497Z
We couldn’t complete this review. Comment @codex review to try again.
c7337e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds LayerColumns to share Arrow conversion, accessor fallbacks, batch drawing, and upload cleanup.

  • Layer code can prepare Arrow columns and fallback inputs through one shared helper.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Layer inputs change] --> B[Convert columns and prepare fallbacks]
  B --> C{Request still current?}
  C -->|No| D[Release new uploads]
  C -->|Yes| E{All inputs succeed?}
  E -->|No| F[Keep previous uploads]
  E -->|Yes| G[Replace previous uploads]
  G --> H[Draw matching batches]
Loading

Reviews (2) · Last reviewed commit: "fix(layers): handle accessor-only column..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.074% (-0.7%) from 84.752% — codex/arrow-layer-support into master

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c7337e4. Configure here.

@ibgreen
ibgreen merged commit 5e97cbc into master Nov 4, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/arrow-layer-support branch November 4, 2026 17:56
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.

2 participants