Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3812 +/- ##
============================================
+ Coverage 76.35% 78.91% +2.55%
- Complexity 13424 16082 +2658
============================================
Files 1012 1092 +80
Lines 60341 70418 +10077
Branches 7075 8380 +1305
============================================
+ Hits 46076 55572 +9496
+ Misses 11548 11488 -60
- Partials 2717 3358 +641 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…y types to the GLVs Adds GraphBinary, GraphSON and Gryo serialization for the Geometry type introduced in apache#3754. Adds matching geometry types with GraphBinary codecs to the Python, JavaScript, .NET and Go GLVs, tested against shared fixtures and PostGIS output. Assisted-by: Kiro:claude-opus-5.5
…geo Gherkin scenarios in the remote Java tests, and update the docs that said geometries cannot be serialized Assisted-by: Claude Code:claude-opus-5.5
Assisted-by: Claude Code:claude-opus-5.5
GumpacG
force-pushed
the
geospatial-serialization
branch
from
November 20, 2026 18:14
cca2f6c to
826d3c1
Compare
GumpacG
marked this pull request as ready for review
November 20, 2026 18:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up implementation pull request for the geospatial proposal (
proposal-geospatial-10.asciidoc). It builds on #3754, which added theGeometryvalue type, and #3809, which added the geo predicates and the delivery toy graph. It lets geometries cross the wire: serialization in GraphBinary, GraphSON and Gryo, and geometry types with a GraphBinary codec in each GLV.Changes
0x31, value{srid}{wkb}, anIntSRID followed by ISO WKB with no length prefix.GeometrySerializerreads throughGeometry.fromWkb(InputStream, int), a new public method that reads one geometry from a stream.{"wkt": ..., "srid": ...}, registered in the core module. Every SRID round-trips, includingOTHERones. Reading requires a stringwktwithout an EWKT prefix and an integersrid.{srid}{length}{wkb}.Curve,Surface, MultiCurveandMultiSurface,Model`, and a GraphBinary codec. Values validate on construction, compare exactly, and write WKT, EWKT and big-endian ISO WKB..gbinand 10.jsongeometry files in gremlin-test, with theirModelentries.data/tinkerpop-delivery.kryo(Gryo 3),data/tinkerpop-delivery.json(GraphSON 4) and atinkerpop-delivery-v3.kryotest resource, following the zoo graph.LoadGraphWith.DELIVERY.location()andTestFilesreturn the Gryo file instead of throwing.@DataGeometryscenarios now run in the remote Java feature tests. The server test configurations gain adeliverygraph with agdeliverytraversal source, andRemoteWorldmaps it. Hadoop, Spark and the GLV runners still exclude them.for-committersandgremlin-variantsno longer say geometries cannot be serialized.Testing
GeometrySerializerTest,GeometryGraphSONTest, and new tests inWkbTest, GryoMapperTest, the IO compatibility tests,AbstractRoundTripTestandTinkerGraphIoStepTest. In each GLV, geometry and codec tests plus the shared fixtures.DefaultGraphManagerTestandCheckedGraphManagerTest` count the new graph.@DataGeometryscenarios pass in the 6 remote feature tests: all 56 in the 5 OLTP classes, and 41 in the computer class, which excludes the rest through the standard graph computer tag filter.ST_AsBinary, writing exactly its XDR form, and rejectingST_AsEWKB. Malformed and hostile WKB is tested against every reader check, and a mutation pass confirmed that breaking a check fails a test.Assisted-by: Kiro:claude-opus-5.5