You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
Added
Introduced SCQL 2.0 OpenCore architecture: new CompilerService gRPC API (api/v1alpha1/compiler.proto) with CompileSQL endpoint, and a new Go compiler package (pkg/interpreter/compiler/) replacing the old interpreter pipeline.
Added Perfetto-based tracing support in engine, controlled by --enable_trace and --trace_log_path flags.
Added GroupSecretSum and GroupSecretAvg operators using SPU secret-sharing, replacing the old HE-based group aggregation. Benchmarks show the new algorithm is 5-10x faster.
Added planner optimization rules: correlated subquery decorrelation, group-by threshold enforcement, JOIN reorder by party code, and consecutive selection merging.
Added Rr22Mode (low/fast) for PSI algorithm negotiation.
Added opencore-demo example and quickstart documentation for getting started with the new architecture.
Changed
breaking: Redesigned system architecture from Broker-based (P2P/Centralized) to native Compiler + Engine integration.
breaking: Executor.RunExecutionPlan() now returns *scql.QueryResponse instead of *scql.SCDBQueryResultResponse.
Refactored engine operators to use typed ExecContext accessor methods (GetInputTensor(), SetOutputTensor(), etc.) instead of manual tensor table lookups.
Refactored session negotiation: new Session::Negotiate() method handles streaming options, PSI options, and curve types via protobuf-serialized NegotiationOptions.
Consolidated StreamingOptions into SessionOptions.
Extracted RunPlanCore from EngineServiceImpl into a standalone function for reuse in both RPC and task modes.
Updated documentation to reflect the OpenCore architecture.
Removed
Removed SCDB centralized query server (pkg/scdb/, cmd/scdbserver/, cmd/scdbclient/, api/scdb_api.proto).