Repository navigation
Conversation
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. |
[Medium impact] The follow-up changes appear safe to merge; both previous findings are addressed. SummaryThe PR expands Arrow support for flight examples and Scenegraph transforms, and fixes React canvas sizing for fractional dimensions.
Both previous findings are addressed. No new actionable issues were found in the follow-up changes. Reviews (2) · Last reviewed commit: "Address v10 flight loading review" · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f890a99c18
ℹ️ 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".
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 97e275a; recommend approval.
No P1s.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| "react-dom": "^18.0.0", | ||
| "react-map-gl": "^8.0.0" | ||
| "react-map-gl": "^8.0.0", | ||
| "@math.gl/sql": "5.0.0-beta.12", |
There was a problem hiding this comment.
P2: A standalone copy of this example fails: it uses SQL accessors, pins deck.gl ^9.0.0, and no published deck.gl has SQL accessors. The scenegraph and line READMEs still say to copy the folder and run npm start.
Could both READMEs use the arc README's checkout note (yarn start-local) for now, with a TODO pointing to #11268?
Generated by Claude Code
| if (controller.signal.aborted) return; | ||
| startReplay(); | ||
| } | ||
| pollTimer = setTimeout(poll, 60000); |
There was a problem hiding this comment.
P2: On deck.gl every poll fails CORS, so the page always shows the simulated replay and logs a failed request every 60 s. The old code made one request.
- A request with
Origin: https://deck.glgetsAccess-Control-Allow-Origin: https://opensky-network.org.
Could we stop polling after a network or CORS failure, and keep the 60 s poll once a request succeeds?
Generated by Claude Code
| Transform vectors must match the data length. Null rows or components use the | ||
| accessor default. `getTransformMatrix` continues to override both accessors. |
There was a problem hiding this comment.
P2: These lines render as part of getScale, but they apply to every transform accessor. The new bullets also skip this page's Arrow format: getPosition and getColor put arrow.Vector in the heading and link Using with Arrow in one line.
Could the transform entries use that format, with the length and null rules stated once?
Details
- The
getOrientationSQL example sayspitch, heading, roll; the prop text says[pitch, yaw, roll]. - "continues to override" describes a change; the reference can say "overrides".
Generated by Claude Code
|
|
||
| ### Arrow loading | ||
|
|
||
| The example loads the full `website/flight-path-data.txt` dataset directly into an |
There was a problem hiding this comment.
P2: The Data format section above still links the examples/line folder and its Heathrow JSON. The app now loads website/flight-path-data.txt for the flights. Could we update that link?
Generated by Claude Code
| } | ||
|
|
||
| /** Internal example loader for a single Google/Mapbox encoded polyline. */ | ||
| export const PolylineArrowLoader = { |
There was a problem hiding this comment.
Non-blocking: The app uses only decodePolyline and positionVector from this file. PolylineArrowLoader is used only by its test and the README paragraph. Could we drop it?
Generated by Claude Code
athomct
left a comment
There was a problem hiding this comment.
Master now has Arrow and SQL support for the ScenegraphLayer transform accessors from #11219. That PR sets arrow: 'row' on getOrientation, getScale, getTranslation and getTransformMatrix. create-props.ts then changes a vector or SQL input into a row callback. test/modules/layers/tabular-inputs.spec.ts covers ScenegraphLayer with SQL getScale and getTransformMatrix.
This PR uses arrow: true and adds a second vector path in mesh-columns.ts. After the rebase, please keep one of the two methods. If you keep 'row', the isArrowVector branches in updateColumns and prepareMeshColumnTransforms never run. Then the null rules in scenegraph-layer.md must match what the row adapter does. If you keep arrow: true, please tell us why the typed path is necessary, and remove the row adapter for these props.
I also agree with chrisgervang's open points on the scenegraph package.json, the CORS polling, and the line README. The scenegraph package.json also pins @math.gl/sql and @math.gl/geospatial to 5.0.0-beta.12, but master uses ^5.0.0.
| getOrientation: {type: 'accessor', value: [0, 0, 0]}, | ||
| getScale: {type: 'accessor', value: [1, 1, 1]}, | ||
| getTranslation: {type: 'accessor', value: [0, 0, 0]}, | ||
| getOrientation: {type: 'accessor', arrow: true, value: [0, 0, 0]}, |
There was a problem hiding this comment.
Master sets arrow: 'row' on these four props (#11219). Please keep one method after the rebase. With 'row', the vector branches in mesh-columns.ts do not run.
Follow up of #11192
Change List
Verified lint and Node tests, including the Scenegraph transform suite.
Note
Low Risk
Non-breaking additions to layer accessor types and example loaders with low risk of regression.
Overview
Adds Apache Arrow column and SQL expression support to
ScenegraphLayerinstance transform accessors (getOrientation,getScale,getTranslation, andgetTransformMatrix), including validation and fallback handling for null rows or components.Updates the Line and Scenegraph v10 website examples to use Arrow data pipelines. The Line example introduces
FlightPathArrowLoaderandPolylineArrowLoaderto parse Google encoded polyline flight streams directly into Arrow tables for SQL accessors. The Scenegraph example converts OpenSky flight states to Arrow tables with SQL-evaluated orientation and scale, while adding an offline simulated replay loop when live API polling fails.Additionally fixes canvas container size matching in
@deck.gl/reactby rounding fractional pixel dimensions reported byResizeObserver, and strips fixeddepthFormatparameters on glTF models under WebGPU.Reviewed by Cursor Bugbot for commit 97e275a. Bugbot is set up for automated code reviews on this repo. Configure here.