Repository navigation
feat: support Arrow accessors across column-enabled layers - #11103
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryAdds Arrow vectors as inputs to supported layer accessors.
No new actionable issues found. Earlier findings were checked against the current fixes. Tests were not run during this review.
|
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 2041f59. Configure here.
6c3dc84 to
2baa0f4
Compare
| Columns need `COPY_SRC` usage. See the [constructor docs](./cpu-aggregator.md#readbackaggregator) | ||
| for accepted formats. Strided and interleaved columns work. | ||
|
|
||
| For Cartesian GridLayer inputs, compare the native WebGPU aggregator with the CPU adapter. |
There was a problem hiding this comment.
Is this recipe covered elsewhere now, not supported after this change, or deemed unnecessary?
Same question for the section above
| #### `getPentagon` ([Accessor<bigint | string>](../../developer-guide/using-layers.md#accessors), optional)  {#getpentagon} | ||
| #### `getPentagon` (Accessor | arrow.Vector, optional)  {#getpentagon} |
There was a problem hiding this comment.
Let's keep the expected return types for callbacks
| #### `getHexagon` ([Accessor<string>](../../developer-guide/using-layers.md#accessors), optional) {#gethexagon} | ||
| #### `getHexagon` (Accessor | arrow.Vector, optional) {#gethexagon} |
There was a problem hiding this comment.
I'd also like the link to accessor docs to remain, in addition to the return types

Goals
Response to TSC review comments
Allow Arrow columns through the existing accessors of column-enabled layers, with one public input choice per accessor: constant, callback, or Arrow vector.
Changes
Numeric rendering conversion continues to use luma.gl; CPU-expanded cell styling retains its existing 0–255 color convention. The rendering column path still excludes transitions and layer extensions.
Validation
yarn lintyarn test-website, including the package buildWork was isolated in a separate worktree; unrelated checkout changes were preserved.
Note
Medium Risk
Refactors prop validation, column resolution, and input handling across multiple primitive and composite layers. While consolidating the Arrow API into accessors simplifies usage, changes to column props could break callers relying on the earlier experimental column prop API.
Overview
Unifies Apache Arrow input handling by enabling column-supported layers to accept Arrow
Vectorinstances directly through existing accessor props (such asgetPosition,getFillColor, andgetRadius) instead of requiring dedicated column props.In the core lifecycle,
AccessorPropTypenow supports anarrowopt-in flag to validate Arrow vectors via a newisArrowVectorutility, andresolveColumnsbinds those vectors to layer column attributes alongsideArrowAccessorTypeScript types. For DGGS cell layers (A5Layer,GeohashLayer,H3HexagonLayer,H3ClusterLayer,QuadkeyLayer, andS2Layer), separate CPU column props likecellsandfillColorshave been removed in favor of passing Arrow vectors directly to cell identifier and styling accessors while preserving source-feature expansion and picking.Explicit layer column props (
positions,weights, etc.) are now strictly reserved for borrowedGPUVectorinstances, marked as@experimental, and documented under dedicated GPU buffer sections. Comprehensive documentation and guides across all affected core, mesh, and geo layers have been updated to reflect the new accessor conventions.Reviewed by Cursor Bugbot for commit b804ca3. Bugbot is set up for automated code reviews on this repo. Configure here.