Repository navigation
feat(layers): accept Arrow columns in ScatterplotLayer and ArcLayer - #10920
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The latest test change appears safe to merge. SummaryAdds Arrow column inputs to
Reviews (27) · Last reviewed commit: "test(layers): verify Arrow batch instanc..." · Reviewed by Greptile |
b5cc413 to
0dde418
Compare
0dde418 to
7017ed4
Compare
7017ed4 to
44596bc
Compare
8fe2c03 to
a347204
Compare
7dfc813 to
75f38f6
Compare
75f38f6 to
c6ad459
Compare
|
Chris asked:
There isn't a dedicated conversion-complete callback today. 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. |
f0df04d to
812abac
Compare
6b52a58 to
6a37c37
Compare
e86571f to
34e8df3
Compare
124f0d0 to
b9acb7c
Compare
b9acb7c to
8b23fd9
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.

Background
ScatterplotLayer and ArcLayer cannot consume Arrow columns directly. Applications must first materialize rows or prepare binary attributes.
Change List
ScatterplotLayerandArcLayerGPUVectorModelfor Arrow renderingVerified: 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
ScatterplotLayerandArcLayer, allowing columnar data ingestion without materializing JavaScript row objects or manually configuring binary attributes.When column props (such as
positions,radii,sourcePositions, ortargetColors) are supplied, the layers bypassAttributeManagerand render viaGPUVectorModelmanaged byLayerColumns. 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 inLayeris updated to safely handle layers running without anAttributeManager.Reviewed by Cursor Bugbot for commit 6a43029. Bugbot is set up for automated code reviews on this repo. Configure here.