Repository navigation
Description
Summary
The time-series HTTP API has been complete server-side since the module landed - 13 routes registered in server/src/main/java/com/arcadedb/server/http/HttpServer.java:253-265 - but the supported Java client cannot reach any of them. grep -rniE '/ts/' network/src/ returns zero matches.
Correction (2026-09-10). This paragraph originally claimed that
RemoteSchema.buildTimeSeriesType()"lets a remote client define a time-series type". That was wrong: the method exists at
network/src/main/java/com/arcadedb/remote/RemoteSchema.java:442 but throws a bareUnsupportedOperationException. The claim was made from the method's presence without reading its body. The builder gap is tracked in #7335; it does not affect this issue's scope, which is the data plane.
A remote client can create a time-series type today through SQL text (CREATE TIMESERIES TYPE ..., see CreateTimeSeriesTypeStatement), and RemoteSchema decodes the KIND_CODE "t" for time-series types when navigating the schema (lines 830, 846). What it cannot do is write a point into that type or read one back through the supported client. The only escape is to hand-roll HTTP against /ts/{database}/write outside the client.
Current state
| Surface | Time series |
|---|---|
| HTTP server routes | 13 routes: /ts/{db}/write, /query, /latest, /grafana/*, /prom/* |
RemoteSchema (DDL) |
buildTimeSeriesType() throws UnsupportedOperationException (#7335); KIND_CODE decoded; SQL DDL works |
RemoteDatabase (data plane) |
nothing |
RemoteServer |
nothing |
| gRPC | nothing - tracked separately in #7305 |
Proposed scope
Add client methods covering the core time-series data plane, matching the shapes the handlers already accept:
- write points -
PostTimeSeriesWriteHandler,POST /ts/{database}/write - query a range -
PostTimeSeriesQueryHandler,POST /ts/{database}/query - latest value per series -
GetTimeSeriesLatestHandler,GET /ts/{database}/latest
Route them through RemoteHttpComponent like every other remote call, so retry, leader-proxy handling and error mapping behave as they do for the rest of the client rather than being re-derived.
Out of scope: the Grafana and Prometheus/PromQL routes. Those exist to satisfy Grafana's datasource protocol and Prometheus' remote read/write; their consumers are Grafana and Prometheus, not the Java client.
Contract surfaces that must be updated together
- Client -
network/src/main/java/com/arcadedb/remote/RemoteDatabase.java(the substance of this issue) - OpenAPI -
server/src/main/java/com/arcadedb/server/http/handler/openapi/TimeSeriesApiSpec.java, verified against what the client now sends and kept green againstOpenApiSpecGenerationIT - Proto - no change required here; the gRPC side of time series is gRPC proto has no time-series API #7305
Verification
- Tests in the
servermodule against a live server, following theRemoteDatabaseIT/RemoteDatabaseJavaApiITstyle - End-to-end:
buildTimeSeriesType()-> write points -> query range -> read latest, entirely throughRemoteDatabasewith no hand-rolled HTTP. That round trip is the thing that is impossible today and is what proves the issue fixed - Equivalence: the same write/query through the client and through raw
POST /ts/{database}/write|querymust agree
Notes
Split out of #7305, where this was buried as a sub-bullet of the client section. It is HTTP-client work rather than gRPC work, so it needs its own labels to avoid being shipped only as part of a gRPC change - or missed entirely.
Related: #7305 (gRPC time-series API), #7280 (backup omits sealed TimeSeries files).
Resolution
Implemented by #7323 (feat(#7305): a time-series API on gRPC, reachable from both Java clients, commit 02f2463), which added the client methods as part of the gRPC time-series work but did not declare Closes #7307.
Verified on main at 8e9e3d3 - network/src/main/java/com/arcadedb/remote/RemoteDatabase.java:
| Method | Line | Endpoint |
|---|---|---|
timeSeriesWrite(List<TimeSeriesPoint>) |
1008 | POST /ts/{db}/write?precision=ms |
timeSeriesWriteStream(Iterable<TimeSeriesPoint>, int) |
1065 | chunked POST /ts/{db}/write |
timeSeriesQuery(TimeSeriesQuery) |
1088 | POST /ts/{db}/query |
timeSeriesLatest(String) / (String, String, ...) |
1148 / 1164 | GET /ts/{db}/latest |
RemoteGrpcDatabase overrides all four with the equivalent gRPC RPCs, so the same application code runs over either protocol - which is what the issue asked for.
Grafana and Prometheus/PromQL remain deliberately out of scope, as filed.
Activity
robfrank commentedon Sep 10, 2026
Closing as completed: implemented by #7323 (commit
02f24637fc), which shipped the fourtimeSeries*methods onRemoteDatabaseplus theRemoteGrpcDatabaseoverrides, but never declaredCloses #7307.Verified on main at
8e9e3d390e. The issue body has been corrected: its original claim thatRemoteSchema.buildTimeSeriesType()lets a remote client define a time-series type was wrong - that method throwsUnsupportedOperationException, tracked in #7335. Type creation over the wire works through SQL DDL, so the end-to-end journey this issue was about is complete.