Skip to content

Neptune ​

Parity grade: A · SDK aws-sdk-go-v2/service/neptune@v1.53.3 · last audited 2026-10-12 (0c1472972)

Category: Database · View PARITY.md on GitHub · All Services

Parity & Coverage ​

MetricValue
Feature families13 (13 ok)
Known gaps6
Structural gaps (can't be emulated)2
Deferred items2
Resource leaksclean

Known Gaps ​

  • Bulk loader (/loader): a chained iamRoleArn (comma-separated, sparql_loader.go roles) evaluates only the first hop (rds.amazonaws.com trust on the first role and its sts:AssumeRole permission on the second); later roles' trust and the final role's s3:GetObject/kms:Decrypt are not evaluated because pkgs/roleauth evaluates service principals only. This is IAM role evaluation and is out of scope for this pass.
  • Cluster port serves plain HTTP/WebSocket and unencrypted Bolt unless NEPTUNE_TLS=true (front_tls.go, self-signed certificate); Neptune itself accepts only TLS, but a TLS default would break every http:// client and test in this repo. SPARQL explain returns a text/html rendering of this engine's own algebra (sparql_front.go serveSparqlExplain, sparql/explain.go), not Neptune's operator table: the evaluator picks the join order per binding while backtracking (sparql/bgp.go pickPattern) and has no operator pipeline, so per-operator Units In, Units Out and Time columns cannot be produced without restructuring evaluation. The Neptune ML endpoints of the neptunedata API (StartMLDataProcessingJob, StartMLModelTrainingJob, StartMLModelTransformJob, CreateMLEndpoint and their Get/List/Cancel/Delete operations) are not served: they drive SageMaker jobs and endpoints and are not wired from this service to services/sagemaker. With NEPTUNE_GREMLIN=container (docker mode only) Gremlin runs in a stock tinkerpop/gremlin-server container whose graph is separate from the in-process openCypher/Bolt graph and has no Neptune Streams (the default in-process mode shares one graph and one stream log). The RDF store is always separate from the property graph, as in Neptune.
  • Bolt: explicit transactions hold the cluster graph exclusively until COMMIT/ROLLBACK/disconnect (Neptune uses MVCC, so a concurrent reader is not blocked there), and the executor computes a whole result before streaming starts (PULL n / has_more and DISCARD page over that row snapshot after the graph lock is released; rows are not produced lazily). No Go neo4j driver is in go.mod, so CI proves the protocol only with the pkgs/bolt tests and bolt_front_test.go; the neo4j Python driver 6.4.1 was run against the embedded cluster by hand (connect, auto-commit, parameters, node/relationship/path values, explicit transaction commit and rollback, execute_write, syntax and unsupported-operation errors).
  • openCypher subset (services/neptune/opencypher): neptune.read() (S3 access, Neptune 1.4.7.0+; it needs the unsupported CALL ... YIELD form) is not implemented; the extended datetime behaviour is served only when the cluster parameter group's neptune_lab_mode has DatetimeMillisecond=enabled (Neptune Analytics-style always-on behaviour is not offered); FOREACH, LOAD CSV, CALL[YIELD], shortestPath/allShortestPaths and MANDATORY MATCH answer UnsupportedOperationException as the compliance page documents.
  • NEPTUNE_GREMLIN=container: the Gremlin Server container's graph is saved with the server's own GraphSON writer over a WebSocket script request on cluster stop and when a backend snapshot is taken, and loaded back once the container answers after a start or restore (gremlin_snapshot.go; verified against tinkerpop/gremlin-server:3.7.3 in engine_docker_snapshot_test.go). The transfer is whole-graph, a snapshot of a cluster whose container is unreachable keeps the last captured copy, DB cluster snapshots and clones do not capture container graphs (they capture the in-process graph and RDF store), and the container graph has no Neptune Streams. The writer and reader endpoints are the same host:port.
  • Gremlin subset (services/neptune/gremlin): lambdas, the withSack split function (a UnaryOperator, which Gremlin only expresses as a lambda), io().read() from a presigned HTTPS URL (io() answers UnsupportedOperationException for both read and write), the 3.8 one-by()-only errors for sack()/sample()/dedup() (sample() enforces it), Neptune support for index() (absent from the Neptune step pages, implemented anyway) and the exact error text of math()/sack() failures (recalled, unverified), g.tx() inside a script string (Neptune also rejects it: manual transactions are bytecode-only), profile/explain and variable assignment in scripts are not implemented and return MalformedQueryException/UnsupportedOperationException. Sessions: a session holds the whole graph exclusively while a transaction is open (Neptune uses MVCC, so concurrent readers are not blocked there), all open sessions of a dropped WebSocket are rolled back, and a failed request rolls back the open transaction but keeps the session. The string steps (toLower, toUpper, trim, lTrim, rTrim, length, asString, split, concat, replace, substring) are TinkerPop 3.7.1+ and are enabled for every engine version; the first Neptune engine release carrying them is unverified. Integer and float widths are folded to Int64/Double on write; multi-valued (set cardinality) properties are stored as a list value, so a list-valued property literal is rejected; vertex property ids are derived, not stored.

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • DescribeDBClusterSnapshots IncludePublic/IncludeShared add other accounts' snapshots; single-account emulator, so there are none to add (SnapshotType=public/shared are evaluated).
  • DeleteDBInstance SkipFinalSnapshot=false creates no snapshot: Neptune has no DB-instance snapshot resource in the pinned SDK.

Deferred Items ​

  • RESOLVED 2026-09-11 (gopherstack-jd33): "8-parameter representative approximation" catalog gap -- see the top-level 2026-09-11 note and the DBParameterGroup/DBClusterParameterGroup family notes above. Residual, still-disclosed gap: neptune_lookup_cache's documented default flip to "1" when an R5d instance joins the cluster is not modeled (this backend's parameter override store isn't keyed by instance class); neptune_slow_query_log_threshold has no documented AllowedValues range to enforce (only a default is documented).
  • RESOLVED 2026-09-11 (gopherstack-jd33): GlobalCluster Failover/Switchover silent-no-op-on-unresolvable-target gap -- see the top-level 2026-09-11 note and the GlobalCluster family note above.

Audited Feature Families ​

Feature FamilyStatus
DBCluster—
DBInstance—
DBClusterParameterGroup—
DBParameterGroup—
DBSubnetGroup—
ClusterSnapshot—
EventSubscription—
GlobalCluster—
ClusterEndpoint—
Tags—
Events—
Maintenance—
StaticCatalogok

Released under the MIT License.