Skip to content

feat(layers): add Arrow columns to LineLayer and PointCloudLayer - #11029

Merged
ibgreen merged 1 commit into
masterfrom
codex/arrow-line-point
Nov 5, 2026
Merged

ibgreen merged 1 commit into
masterfrom
codex/arrow-line-point

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10920

Background

LineLayer and PointCloudLayer require row accessors or binary attributes even when Arrow columns are available. Both can reuse the shared column preparation and batch rendering introduced for ScatterplotLayer and ArcLayer.

Change List

  • Add Arrow column props to LineLayer and PointCloudLayer
  • Reuse column conversion, binary fallbacks, and batch rendering
  • Preserve chunk picking, instance limits, and longitude wrapping
  • Use upstream GPUVectorModel and owned geometry
  • Unit tests and WebGL/WebGPU rendering tests
  • Documentation for Arrow column props and limitations

Verified: yarn, yarn build, lint, Node and WebGL/WebGPU tests.


Note

Low Risk
Changes introduce optional column-based input paths and batching helpers for two layers with no modifications to standard row accessor processing.

Overview
Adds Apache Arrow column support to LineLayer (sourcePositions, targetPositions, colors, widths) and PointCloudLayer (positions, normals, colors), enabling layers to ingest columnar vectors directly without constructing per-feature JavaScript objects.

Both layers integrate LayerColumns to coordinate asynchronous column conversion, batch rendering with rowIndexOffset shader uniform tracking for picking, and transitions between columnar and row accessor modes. LineLayer also adapts its 180th-meridian longitude-wrapping model for chunked column draws.

In @deck.gl/core, LayerColumns now resolves binary attribute overrides by attribute name in addition to accessor name. Documentation and cross-backend WebGL/WebGPU test suites covering batched rendering, date line crossing, and buffer lifecycle management have been added.

Reviewed by Cursor Bugbot for commit f626231. 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-04T19:04:35.707754Z
We couldn’t complete this review. Comment @codex review to try again.
076334a 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: 4/5

[Medium impact] The PR extends Arrow-column rendering to two layer workflows and adjusts shared fallback lookup.

The code changes appear safe, but the required release note should be added before merging.

Findings

  1. P2 New support lacks release notes ▶

Summary

Adds Arrow columns to LineLayer and PointCloudLayer.

  • LineLayer draws lines from Arrow columns in matching batches.
  • PointCloudLayer draws points directly from Arrow columns.
  • Binary attributes can fill Arrow column gaps by layer name.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Arrow columns and fallback inputs] --> B[LayerColumns conversion]
  B --> C[Aligned GPU batches]
  C --> D[PointCloudLayer model]
  C --> E[LineLayer model]
  C --> F[Wrapped LineLayer model]
  D --> G[Draw with global picking offset]
  E --> G
  F --> G
Loading

Reviews (2) · Last reviewed commit: "feat(layers): add Arrow columns to line ..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.941% (+0.08%) from 84.865% — codex/arrow-line-point into master

@ibgreen
ibgreen force-pushed the codex/arrow-line-point branch from 076334a to f626231 Compare November 5, 2026 13:01
@ibgreen
ibgreen merged commit 6422d05 into master Nov 5, 2026
7 checks passed
@ibgreen
ibgreen deleted the codex/arrow-line-point branch November 5, 2026 13:11

@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.

👍

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