Repository navigation
Support SQL color scales in Arrow accessors - #11159
Conversation
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 9478920; comments only at this point. Three P1s: scale expressions skip custom SQL parsers and functions, getResolvedScale needs settling, and the PR mixes in unrelated work. Scale resolution itself is sound.
P1: Scenegraph Arrow transforms, a WebGPU depthFormat workaround, deckgl.ts size rounding and three example rewrites are unrelated to color scales. Could these move to their own PRs?
P2: whats-new.md announces Scenegraph transforms but not SQL color scales.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
9478920 to
a5d5282
Compare
fd843fb to
9419c73
Compare
9419c73 to
18e2f61
Compare
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18e2f61e3e
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge based on this follow-up review. SummaryAdds SQL color scales to Arrow accessors, with domains drawn from the whole loaded table and colors refreshed when data appends.
Reviews (4) · Last reviewed commit: "Document SQL accessor batch evaluation" · Reviewed by Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ 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 fef418c. Configure here.

Background
Arrow color accessors need to resolve SQL color scales over the loaded table.
Change List
Verified workspace build, lint, and focused accessor tests.
Note
Low Risk
Adds additive SQL color scale parsing and evaluation for Arrow accessors without modifying core rendering pipelines. Non-scale SQL accessors maintain their existing evaluation behavior.
Overview
Adds support for top-level SQL color scale functions (
SCALE_COLOR,SCALE_DIVERGING,SCALE_ORDINAL,SCALE_QUANTILE, andSCALE_QUANTIZE) within Arrow SQL accessor expressions using@math.gl/sql/scales.Color scales resolve their domains over the entire loaded Arrow table. When data is appended, non-scale accessor columns preserve previous batch results while color scale columns are re-evaluated across all batches to reflect updated domains. Missing or null values fall back to transparent colors.
Also updates
evaluateAccessorQueriesto return both the evaluatedtableand resolvedscalesmetadata, adjusts internal call sites, and documents SQL color scale usage.Reviewed by Cursor Bugbot for commit fa41841. Bugbot is set up for automated code reviews on this repo. Configure here.