Skip to content

feat(proto): add clickhouse.proto foundation for gRPC pipeline#8222

Merged
h0lybyte merged 3 commits intodevfrom
trunk/clickhouse-proto-1773807523
Mar 18, 2026
Merged

feat(proto): add clickhouse.proto foundation for gRPC pipeline#8222
h0lybyte merged 3 commits intodevfrom
trunk/clickhouse-proto-1773807523

Conversation

@h0lybyte
Copy link
Member

Summary

  • Adds clickhouse.proto to packages/data/proto/jedi/ with ClickHouseService defining 6 RPCs: QueryLogs, QueryLogStats, RawQuery, Insert, ExecuteDdl, and server-streaming TailLogs
  • Proto messages model the observability domain (logs, stats, time ranges, pagination) with typed filters matching the existing observability.logs_raw schema
  • Wired into Jedi build.rs for tonic codegen — generates Rust client/server stubs + serde derives
  • Regenerated all existing proto stubs (cosmetic derive formatting from tonic-prost)

Context

Foundation for migrating from edge-function HTTP queries to a React gRPC <-> KBVE Axum <-> ClickHouse pipeline. This PR establishes the proto schema only — service implementation follows.

Closes #8134

Test plan

  • cargo build -p jedi --lib succeeds with BUILD_PROTO=1
  • Verify generated clickhouse.rs stubs compile cleanly in downstream crates
  • Future: implement ClickHouseService trait on Axum server side

Add ClickHouseService proto with typed RPCs for the React <-> Axum <-> ClickHouse
gRPC pipeline: QueryLogs, QueryLogStats, RawQuery, Insert, ExecuteDdl, and
server-streaming TailLogs. Wire into Jedi build.rs and regenerate all proto stubs.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Run full proto-to-zod pipeline producing clickhouse.binpb descriptor
and clickhouse-schema.ts with typed Zod validators for all ClickHouse
service messages. Regenerated existing schemas (timestamp + formatting).
@h0lybyte h0lybyte merged commit 9c60b76 into dev Mar 18, 2026
7 checks passed
@h0lybyte h0lybyte deleted the trunk/clickhouse-proto-1773807523 branch March 18, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant