Skip to content

feat(layers): accept Arrow columns in ScatterplotLayer and ArcLayer - #10920

Merged
ibgreen merged 7 commits into
masterfrom
codex/core-arrow-subpath
Nov 4, 2026
Merged

ibgreen merged 7 commits into
masterfrom
codex/core-arrow-subpath

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Background

ScatterplotLayer and ArcLayer cannot consume Arrow columns directly. Applications must first materialize rows or prepare binary attributes.

Change List

  • Add Arrow column props to ScatterplotLayer and ArcLayer
  • Use upstream GPUVectorModel for Arrow rendering
  • Reuse shared column conversion and lifecycle scheduling
  • Preserve accessor fallbacks, picking, bounds, and aligned chunks
  • Document column props and WebGPU buffer limits
  • Unit tests and WebGL/WebGPU rendering tests

Verified: lint, 49 Node tests, and 33 WebGL/WebGPU tests.


Note

Medium Risk
Introduces an alternative column-based ingestion and GPU binding pipeline in core layers, alongside shader modifications to support picking offsets across chunked draws.

Overview
Adds direct Apache Arrow vector column props to ScatterplotLayer and ArcLayer, allowing columnar data ingestion without materializing JavaScript row objects or manually configuring binary attributes.

When column props (such as positions, radii, sourcePositions, or targetColors) are supplied, the layers bypass AttributeManager and render via GPUVectorModel managed by LayerColumns. Omitted props fall back cleanly to standard accessors or binary data attributes.

Updates vertex shaders and uniform blocks in both layers to pass a rowIndexOffset, ensuring accurate object picking across chunked Arrow draws. Additionally, picking index cleanup in Layer is updated to safely handle layers running without an AttributeManager.

Reviewed by Cursor Bugbot for commit 6a43029. 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-10-25T02:30:01.863348Z
We couldn’t complete this review. Comment @codex review to try again.
b5cc413 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.

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

Stale Bugbot comment from a previous run.

@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The latest test change appears safe to merge.

Summary

Adds Arrow column inputs to ScatterplotLayer and ArcLayer, with accessor and binary fallbacks.

  • ScatterplotLayer draws circles from Arrow columns or row data.
  • ArcLayer draws arcs from Arrow columns or row data.
  • Picking cleanup works when a layer has no AttributeManager.

Reviews (27) · Last reviewed commit: "test(layers): verify Arrow batch instanc..." · Reviewed by Greptile

@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from b5cc413 to 0dde418 Compare October 27, 2026 00:22
@ibgreen ibgreen changed the title feat(core): expose Arrow conversion subpath feat(layers): accept Arrow column props in ScatterplotLayer Oct 27, 2026
@ibgreen
ibgreen changed the base branch from master to codex/arrow-converter-prep October 27, 2026 00:22
@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from 0dde418 to 7017ed4 Compare October 27, 2026 01:14

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

Stale Bugbot comment from a previous run.

@coveralls

coveralls commented Oct 27, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.815% (+0.7%) from 84.074% — codex/core-arrow-subpath into master

@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from 7017ed4 to 44596bc Compare October 27, 2026 01:44

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen requested a review from Pessimistress October 27, 2026 19:21
@ibgreen
ibgreen force-pushed the codex/arrow-converter-prep branch from 8fe2c03 to a347204 Compare October 30, 2026 20:49
@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from 7dfc813 to 75f38f6 Compare October 30, 2026 20:49

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

Stale Bugbot comment from a previous run.

Base automatically changed from codex/arrow-converter-prep to master October 30, 2026 21:21
@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from 75f38f6 to c6ad459 Compare October 30, 2026 21:53

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

Stale Bugbot comment from a previous run.

Comment thread modules/core/src/arrow/README.md Resolved

ibgreen commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

Chris asked:

Is there a callback for the async handle? I'm wondering how an app knows when rendering has settled.

Do you believe the column helper will be reusable across layers, or will all of them require large helpers?

What should we add to the layer API reference? Should examples have Arrow and non-Arrow tabs, and should there be a top-level Arrow guide explaining the modes?

There isn't a dedicated conversion-complete callback today. layer.isLoaded includes pending column conversion, and Deck's onAfterRender runs after a frame. An app can use those signals together, but they are not a GPU-completion fence or a guarantee that all animations have settled. Conversion errors go through onError.

Some pieces should be reusable: conversion, ownership, chunk alignment, and binding. The current helper also contains Scatterplot-specific formats, accessor fallbacks, projection, and picking, so I don't expect every layer to need a copy of the whole helper. I would extract the shared pieces as a second layer establishes the right interface.

I've added the column props, precedence, supported inputs, limitations, and an Arrow example to the Scatterplot API reference. I agree a broader Arrow guide and side-by-side examples would help as support expands; for this first layer, I suggest keeping the concrete example in the reference and developing the top-level guide as the cross-layer API becomes clearer.

@ibgreen ibgreen changed the title feat(layers): accept Arrow column props in ScatterplotLayer feat(layers): accept Arrow columns in ScatterplotLayer and ArcLayer Nov 1, 2026

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from f0df04d to 812abac Compare November 1, 2026 17:54

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from 6b52a58 to 6a37c37 Compare November 2, 2026 23:35
@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from e86571f to 34e8df3 Compare November 4, 2026 02:59

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/core-arrow-subpath branch from b9acb7c to 8b23fd9 Compare November 4, 2026 18:07

@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 bf33eb7. Configure here.

@ibgreen
ibgreen merged commit c576635 into master Nov 4, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/core-arrow-subpath branch November 4, 2026 18:49
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